/*
 * Action ou Vérité as a match (docs/DEFIS.md, lot 2f; template/espace/action-verite-partie.php, static/js/espace/partie.js):
 * the mockup v2 of 2026-11-30 in the frame of the games of the space (the band of framboise, the coral wave, the cream
 * card): the score of the two, the theme and its little wheel, the card face down then turned, the choices; the wheel
 * of the themes on a stage that rises; the end, the winner and the gage. The room takes the colour of the theme in play.
 */
@property --ap-top { syntax: '<color>'; inherits: true; initial-value: #d70298; }
@property --ap-bottom { syntax: '<color>'; inherits: true; initial-value: #702a71; }

.lc-game.ap {
  --ap-top: #d70298;
  --ap-bottom: #702a71;
  --ap-back1: #f9a3c7;
  --ap-back2: #c4285b;
  --ap-cream: #fbf8ef;
  --ap-prune: #702a71;
  --ap-rose: #c4285b;
  --ap-ember: #ffc65c;
  --ap-pale: #ffd6e4;
  --ap-ink: #3b1438;
  background: linear-gradient(168deg, var(--ap-top) 0%, var(--ap-bottom) 100%);
  transition: --ap-top .8s ease, --ap-bottom .8s ease;
}
.lc-game.ap[data-cat="romantique"] { --ap-top: #b8124f; --ap-bottom: #7a1d5f; --ap-back1: #ff7aa0; --ap-back2: #b8124f; }
.lc-game.ap[data-cat="noel"] { --ap-top: #6a2c91; --ap-bottom: #3f1a5c; --ap-back1: #a76acb; --ap-back2: #5b237f; }
.lc-game.ap[data-cat="fous-rires"] { --ap-top: #e0456a; --ap-bottom: #9a2d6c; --ap-back1: #ffb08a; --ap-back2: #e0456a; }
.lc-game.ap[data-cat="souvenirs"] { --ap-top: #a8459c; --ap-bottom: #5f2468; --ap-back1: #e9a3d9; --ap-back2: #a8459c; }
.lc-game.ap[data-cat="coquine"] { --ap-top: #a3126f; --ap-bottom: #561552; --ap-back1: #ee57a4; --ap-back2: #a3126f; }
.lc-game.ap[data-cat="fantasmes"] { --ap-top: #7f2491; --ap-bottom: #431653; --ap-back1: #b964c4; --ap-back2: #6d1f7d; }
.lc-game.ap[data-cat="brulant"] { --ap-top: #d8343f; --ap-bottom: #6d1840; --ap-back1: #ff8a7a; --ap-back2: #c8263a; }
.lc-game.ap[data-cat="favoris"] { --ap-top: #c2187a; --ap-bottom: #702a71; --ap-back1: #f6c7d8; --ap-back2: #c4285b; }

:where(.ap) button { font-family: inherit; }
.ap button:focus-visible { outline: 3px solid var(--ap-ember); outline-offset: 2px; }
html.ap-locked, html.ap-locked body { overflow: hidden; }

.lc-game .ap-shell { gap: 12px; padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }

/* ---- The score: the two of them, their hearts, the ten cards of the match between them ---- */
.ap-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-top: 70px; }
.ap-pod { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; height: 44px; padding: 0 12px; border: 2px solid rgba(255, 255, 255, .2); border-radius: 22px; background: rgba(255, 255, 255, .08); transition: background-color .4s ease, border-color .4s ease, transform .4s ease; }
.ap-pod.is-on { border-color: var(--ap-cream); background: rgba(255, 255, 255, .2); transform: translateY(-2px); }
.ap-pod__name { min-width: 0; overflow: hidden; font-size: 15px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.ap-pod__hearts { flex: none; display: flex; align-items: center; gap: 5px; color: var(--ap-pale); font-size: 17px; font-weight: 900; font-variant-numeric: tabular-nums; }
.ap-pod__hearts svg { color: #ff9cc4; }
.ap-pod__hearts b { display: inline-block; }
.ap-pod__hearts b.is-pop { animation: ap-pop .45s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes ap-pop { 40% { transform: scale(1.35); color: #fff; } }
.ap-dots { display: grid; grid-template-columns: repeat(5, 9px); gap: 5px; }
.ap-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .22); transition: background-color .35s ease, transform .35s ease; }
.ap-dot.is-done { background: var(--ap-cream); }
.ap-dot.is-now { background: var(--ap-ember); transform: scale(1.25); }

/* ---- The theme in play: a touch opens the wheel ---- */
.ap-theme-row { display: flex; justify-content: center; }
.ap-theme { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 8px 0 9px; border: 0; border-radius: 20px; background: var(--ap-cream); box-shadow: 0 4px 0 rgba(40, 6, 30, .3); color: #a50c3a; font-size: 15px; font-weight: 900; cursor: pointer; }
.ap-theme small { padding: 4px 9px; border-radius: 12px; background: rgba(196, 40, 91, .12); font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.ap-theme:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(40, 6, 30, .3); }
.ap-theme__wheel { display: flex; }

/* ---- The table: the deck, the card in play ---- */
.ap-table { position: relative; flex: 1 1 auto; min-height: 240px; max-height: 390px; margin: 4px 12px 0; perspective: 1400px; }
.ap-stack span { position: absolute; inset: 10px 4px 0; border-radius: 26px; background: rgba(255, 255, 255, .14); }
.ap-stack span:first-child { transform: rotate(-4deg) translateY(6px); }
.ap-stack span:last-child { transform: rotate(3deg) translateY(10px); background: rgba(255, 255, 255, .1); }
.ap-card { position: absolute; inset: 0; }
.ap-card.is-in { animation: ap-card-in .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes ap-card-in { from { transform: translateY(-26px) rotate(-3deg) scale(.96); opacity: 0; } }
.ap-card.is-out { animation: ap-card-out .55s cubic-bezier(.5, 0, .7, .4) both; }
.ap-card.is-out--left { animation-name: ap-card-out-left; }
@keyframes ap-card-out { to { transform: translate3d(125%, -6%, 0) rotate(18deg); opacity: 0; } }
@keyframes ap-card-out-left { to { transform: translate3d(-125%, -6%, 0) rotate(-18deg); opacity: 0; } }
.ap-card__inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .65s cubic-bezier(.2, .8, .2, 1); }
.ap-card.is-up .ap-card__inner { transform: rotateY(180deg); }
.ap-card__back, .ap-card__front { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; border-radius: 26px; -webkit-backface-visibility: hidden; backface-visibility: hidden; box-shadow: 0 8px 0 rgba(74, 14, 46, .3), 0 24px 36px -18px rgba(40, 6, 30, .6); }
.ap-card__back { justify-content: center; gap: 10px; overflow: hidden; background: linear-gradient(160deg, var(--ap-back1) 0%, var(--ap-back2) 100%); color: #fff; }
.ap-card__back::before { content: ""; position: absolute; inset: 14px; border: 2px solid rgba(255, 255, 255, .45); border-radius: 18px; }
.ap-card__pattern { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .18; }
.ap-card__back b { position: relative; font-family: "Caveat", "Bradley Hand", "Segoe Print", cursive; font-size: 44px; font-weight: 700; line-height: 1; }
.ap-card__back span { position: relative; padding: 5px 12px; border-radius: 12px; background: rgba(255, 255, 255, .22); font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.ap-card__front { justify-content: space-between; padding: 22px 20px 18px; background: linear-gradient(170deg, #fffdf8, #fbf3e6); color: var(--ap-prune); transform: rotateY(180deg); }
.ap-card__head { position: relative; display: flex; justify-content: center; width: 100%; min-height: 34px; }
.ap-card__tag { align-self: center; max-width: calc(100% - 92px); padding: 7px 14px; border-radius: 14px; background: var(--ap-prune); color: #fff; font-size: 12px; font-weight: 900; letter-spacing: .1em; text-align: center; text-transform: uppercase; }
.ap-card[data-kind="dare"] .ap-card__tag { background: var(--ap-rose); }
.ap-card[data-kind="mine"] .ap-card__tag { background: #a65b14; }
.ap-card[data-kind="bonus"] .ap-card__tag { background: var(--ap-ember); color: var(--ap-ink); }
.ap-card__heart { position: absolute; top: -4px; right: -4px; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(196, 40, 91, .1); color: var(--ap-rose); cursor: pointer; }
.ap-card__heart svg { fill: none; }
.ap-card__heart[aria-pressed="true"] svg { fill: currentColor; }
.ap-card__heart.is-beating { animation: ap-pop .45s cubic-bezier(.2, 1.4, .4, 1); }
.ap-card__text { margin: 0; font-size: clamp(20px, 6vw, 25px); font-weight: 900; line-height: 1.25; text-align: center; text-wrap: balance; }
.ap-card__text em { color: var(--ap-rose); font-style: normal; }
.ap-card__text.is-quiet { color: rgba(112, 42, 113, .6); font-size: 18px; }
.ap-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 28px; color: rgba(112, 42, 113, .55); font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.ap-card__gain { padding: 4px 9px; border-radius: 10px; background: rgba(196, 40, 91, .1); color: var(--ap-rose); letter-spacing: .02em; text-transform: none; white-space: nowrap; }
.ap-card__gain:empty { display: none; }
.ap-card__gain svg, .ap-big svg, .ap-hint svg { width: .95em; height: .95em; vertical-align: -.1em; }
.ap-card.is-bonus .ap-card__front { box-shadow: 0 0 0 3px var(--ap-ember), 0 8px 0 rgba(74, 14, 46, .3), 0 24px 36px -18px rgba(40, 6, 30, .6); }
.ap-chrono { position: relative; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin: -10px 0 -8px -6px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ap-rose); font-size: 12px; font-weight: 900; letter-spacing: 0; cursor: pointer; }
.ap-chrono svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); fill: none; }
.ap-chrono circle { stroke: rgba(196, 40, 91, .18); stroke-width: 3; }
.ap-chrono .ap-chrono__ring { stroke: var(--ap-rose); stroke-dasharray: 97.4; stroke-dashoffset: 0; stroke-linecap: round; }
.ap-chrono.is-done { color: #fff; background: var(--ap-rose); }
.ap-chrono:not([hidden]) + .ap-card__sign { display: none; }

/* ---- The foot, on the coral wave: whose turn, the two choices, then « C'est fait » and the joker ---- */
.ap-foot { margin-top: auto; padding-top: 4px; }
/* Whose turn: the first name in large letters, centred, then what to do under it, as the line was (his remark of
   2026-11-30: the name was too small to see). Two lines kept in place, so that nothing moves when the words change. */
.ap-turn { display: flex; flex-direction: column; align-items: center; min-height: 62px; margin: 0; text-align: center; }
.ap-turn__name { max-width: 100%; min-height: 34px; overflow: hidden; color: var(--ap-pale); font-size: 30px; font-weight: 900; line-height: 1.12; text-overflow: ellipsis; white-space: nowrap; }
.ap-turn__name.is-new { animation: ap-name-in .4s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes ap-name-in { from { opacity: 0; transform: translateY(6px) scale(.96); } }
.ap-turn__line { font-size: 20px; font-weight: 900; line-height: 1.3; text-wrap: balance; }
/* A short screen (a small phone): a little less room around, so that the whole table holds without scrolling. */
@media (max-height: 700px) {
  .lc-game .ap-shell { gap: 10px; }
  .ap-score { margin-top: 64px; }
  .ap-turn { min-height: 56px; }
  .ap-turn__name { min-height: 30px; font-size: 26px; }
  .ap-pair { margin-top: 10px; }
  .ap-hint { margin-top: 8px; }
}
.ap-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.ap-pair[hidden] { display: none; }
.ap-big { display: flex; align-items: center; justify-content: center; gap: 8px; height: 58px; padding: 0 10px; border: 0; border-radius: 29px; background: #fff; box-shadow: 0 6px 0 rgba(141, 27, 69, .45); color: var(--ap-prune); font-size: 17px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.ap-big--dare { color: var(--ap-rose); }
.ap-big:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 2px 0 rgba(141, 27, 69, .45); }
.ap-big:disabled { opacity: .55; cursor: default; }
.ap-pair--doing { grid-template-columns: 1.6fr 1fr; }
.ap-big--done { color: #a50c3a; }
.ap-big--done span { padding: 3px 8px; border-radius: 10px; background: rgba(196, 40, 91, .12); font-size: 13px; letter-spacing: .02em; white-space: nowrap; }
.ap-big--joker { border: 2.5px solid rgba(255, 255, 255, .85); background: transparent; box-shadow: none; color: #fff; }
.ap-big--joker span { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; border-radius: 12px; background: rgba(255, 255, 255, .22); font-size: 13px; letter-spacing: 0; }
.ap-hint { min-height: 18px; margin: 10px 0 0; color: rgba(255, 255, 255, .88); font-size: 13px; font-weight: 800; text-align: center; }

/* The hearts that fly from the card to a score. */
.ap-fly { position: fixed; z-index: 45; width: 22px; height: 22px; margin: -11px 0 0 -11px; color: #ff9cc4; pointer-events: none; }

/* ---- The wheel of the themes: a stage that rises over the table, a real wheel on it. It turns under the finger and is
   thrown with it; the heart on top is its pointer, bent by the pegs between the themes and let go with a click; the
   theme shows when it slows down, and the light runs around the rim when it stops ---- */
.ap-stage { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; }
.ap-stage[hidden] { display: none; }
.ap-stage__veil { position: absolute; inset: 0; background: rgba(40, 6, 30, .5); animation: ap-fade .3s ease both; }
.ap-stage__panel { position: relative; width: 100%; max-width: 460px; margin: 0 auto; padding: 8px 0 calc(24px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(180deg, #86277b 0%, #5f1d60 46%, #3f1640 100%); animation: ap-stage-up .55s cubic-bezier(.2, .9, .25, 1) both; }
.ap-stage__wave { position: absolute; left: 0; bottom: calc(100% - 1px); width: 100%; height: 34px; }
.ap-stage.is-leaving .ap-stage__panel { animation: ap-stage-down .42s cubic-bezier(.5, 0, .75, .2) both; }
.ap-stage.is-leaving .ap-stage__veil { animation: ap-fade-out .42s ease both; }
@keyframes ap-fade { from { opacity: 0; } }
@keyframes ap-fade-out { to { opacity: 0; } }
@keyframes ap-stage-up { from { transform: translateY(calc(100% + 40px)); } }
@keyframes ap-stage-down { to { transform: translateY(calc(100% + 40px)); } }
.ap-stage__head { position: relative; display: flex; align-items: center; justify-content: center; height: 44px; }
.ap-stage__head h2 { margin: 0; color: #fff6e6; font-family: "Caveat", "Bradley Hand", "Segoe Print", cursive; font-size: 36px; font-weight: 700; line-height: 1; }
.ap-stage__x { position: absolute; top: 3px; right: 16px; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; }
.ap-read { display: flex; flex-direction: column; align-items: center; gap: 7px; margin-top: 4px; }
.ap-read__cap { min-height: 15px; color: var(--ap-pale); font-size: 12px; font-weight: 900; letter-spacing: .14em; line-height: 15px; text-transform: uppercase; }
.ap-read__pill { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-width: 156px; height: 44px; padding: 0 20px 0 14px; border-radius: 22px; background: var(--ap-cream); box-shadow: 0 4px 0 rgba(20, 2, 16, .4); color: var(--ap-prune); font-size: 19px; font-weight: 900; white-space: nowrap; transition: background-color .35s ease, color .35s ease; }
.ap-read__dot { flex: none; width: 14px; height: 14px; border-radius: 50%; background: #f07fb0; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7); transition: background-color .15s ease; }
.ap-read__pill svg { flex: none; margin-left: -3px; }
.ap-read__pill.is-won { animation: ap-pill-pop .65s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes ap-pill-pop { 35% { transform: scale(1.14); } }
.ap-wheel { position: relative; width: min(330px, calc(100% - 44px)); aspect-ratio: 1; margin: 30px auto 0; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.ap-wheel__shadow { position: absolute; left: 6%; right: 6%; bottom: -6%; height: 13%; border-radius: 50%; background: radial-gradient(closest-side, rgba(20, 2, 16, .6), rgba(20, 2, 16, 0)); }
.ap-wheel__frame, .ap-wheel__disc, .ap-wheel__gloss { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; }
.ap-wheel__disc { cursor: grab; will-change: transform; }
.ap-wheel.is-dragging .ap-wheel__disc { cursor: grabbing; }
.ap-wheel__gloss { pointer-events: none; }
.ap-wheel .ap-slice { cursor: pointer; }
.ap-wheel .ap-slice:focus { outline: none; }
.ap-wheel .ap-slice:focus-visible .ap-slice__fill { stroke: var(--ap-ember); stroke-width: 5; }
.ap-wheel .ap-slice__dim { fill: #5f1d60; opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.ap-wheel .ap-slice__dim.is-on { opacity: .55; }
.ap-wheel .ap-slice__glow { fill: rgba(255, 255, 255, .12); stroke: #fff6e6; stroke-width: 4; stroke-linejoin: round; opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.ap-wheel .ap-slice__glow.is-on { opacity: 1; }
.ap-wheel .ap-bulb__glow, .ap-wheel .ap-wheel__lock { transform-box: fill-box; transform-origin: center; }
.ap-wheel__flap { position: absolute; top: -4.5%; left: 50%; z-index: 3; width: 13.4%; height: auto; margin-left: -6.7%; transform-origin: 50% 35.4%; filter: drop-shadow(0 3px 2px rgba(20, 2, 16, .45)); pointer-events: none; }
.ap-wheel__hub { position: absolute; top: 50%; left: 50%; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 27%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: radial-gradient(circle at 36% 30%, #fffdf8 0%, #fbefe3 46%, #ead0c2 100%); box-shadow: 0 0 0 5px #c4285b, 0 0 0 7.5px #fff6e6, 0 9px 16px rgba(20, 2, 16, .5); color: #a50c3a; font-size: 11.5px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; transform: translate(-50%, -50%); transition: transform .15s ease; cursor: pointer; }
.ap-wheel__hub svg { width: 34%; height: auto; color: var(--ap-rose); }
.ap-wheel__hub:active:not(:disabled) { transform: translate(-50%, -50%) scale(.93); }
.ap-wheel__hub:disabled { cursor: default; }
.ap-stage__hint { min-height: 20px; margin: 30px 24px 0; color: rgba(255, 255, 255, .82); font-size: 14px; font-weight: 800; text-align: center; }
.ap-spark { position: absolute; z-index: 4; width: 22px; height: 22px; margin: -11px 0 0 -11px; pointer-events: none; }
.ap-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- The end of the match (lot 2h, his mockup v4): the verdict counted (two medallions, the winner lifted, its score
   in cream, a rain of hearts once), the gage the winner picks (a deck, then a card among three, the two others away
   face down, the gage dealt in large and turned), then one mode above made to be wanted, the revenge, a match at
   random. One stage after the other; nothing turns for nothing, nothing blinks. ---- */
.ap-end { position: fixed; inset: 0; z-index: 55; overflow: hidden; background: linear-gradient(180deg, var(--ap-top) 0%, #6a2063 48%, #3b1438 100%); color: #fff; text-align: center; animation: ap-fade .45s ease both; }
.ap-end[hidden] { display: none; }
.ap-end:focus { outline: none; }
.ap-end__spot { position: absolute; left: 50%; top: -150px; width: 600px; height: 600px; margin-left: -300px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 236, 214, .26), rgba(255, 236, 214, 0)); pointer-events: none; }
.ap-end__floating { position: absolute; inset: 0; pointer-events: none; }
.ap-end__floating svg { position: absolute; bottom: -30px; color: rgba(255, 214, 228, .28); animation: ap-rise 7s linear infinite; }
@keyframes ap-rise { to { transform: translateY(-110vh) rotate(25deg); } }
.ap-end__waves { position: absolute; left: 0; bottom: 0; width: 100%; height: 130px; pointer-events: none; }
.ap-end__scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; padding: calc(50px + env(safe-area-inset-top, 0px)) 20px calc(36px + env(safe-area-inset-bottom, 0px)); scrollbar-width: none; transition: padding-top .8s cubic-bezier(.2, .8, .2, 1); }
.ap-end__scroll::-webkit-scrollbar { display: none; }
.ap-end__scroll.is-centered { padding-top: calc(28vh + env(safe-area-inset-top, 0px)); }
.ap-end__inner { position: relative; max-width: 400px; margin: 0 auto; }
.ap-end__kick { margin: 0; color: var(--ap-pale); font-size: 12px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.ap-duel { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 4px; margin-top: 34px; }
.ap-duel__side { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; opacity: 0; transform: translateY(-18px); transition: opacity .45s ease, transform .55s cubic-bezier(.2, 1.3, .4, 1); }
.ap-duel.is-in .ap-duel__side { opacity: 1; transform: none; }
.ap-duel.is-in .ap-duel__side[data-ap-side="1"] { transition-delay: .12s; }
.ap-duel__side.is-lost { opacity: .7 !important; }
.ap-medal { position: relative; display: flex; align-items: center; justify-content: center; width: 86px; height: 86px; border-radius: 50%; background: linear-gradient(160deg, #ff7aa0, #c4285b); box-shadow: 0 0 0 3px var(--ap-cream), 0 10px 18px -6px rgba(20, 2, 16, .55); font-family: "Caveat", "Bradley Hand", "Segoe Print", cursive; font-size: 48px; line-height: 1; transition: transform .55s cubic-bezier(.2, 1.4, .4, 1), box-shadow .5s ease; }
.ap-duel__side[data-ap-side="1"] .ap-medal { background: linear-gradient(160deg, #c27bd0, #702a71); }
.ap-medal b { position: relative; top: 2px; font-weight: 700; }
.ap-duel__side.is-win .ap-medal { transform: scale(1.12); box-shadow: 0 0 0 3px var(--ap-cream), 0 0 0 10px rgba(255, 198, 92, .3), 0 14px 24px -8px rgba(20, 2, 16, .6); }
.ap-duel__name { max-width: 100%; margin-top: 6px; overflow: hidden; font-size: 16px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.ap-duel__score { display: flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 18px; background: rgba(255, 255, 255, .12); color: var(--ap-pale); font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1; transition: background-color .45s ease, color .45s ease; }
.ap-duel__score svg { width: 18px; height: 18px; color: #ff9cc4; }
.ap-duel__score b { display: inline-block; min-width: 1.2ch; }
.ap-duel__score b.is-pop { animation: ap-pop .45s cubic-bezier(.2, 1.4, .4, 1); }
.ap-duel__side.is-win .ap-duel__score { background: var(--ap-cream); color: #a50c3a; }
.ap-duel__side.is-win .ap-duel__score svg { color: var(--ap-rose); }
.ap-duel__vs { align-self: center; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-top: -40px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #ff9cc4; }
.ap-end__win { min-height: 58px; margin: 14px 0 0; font-family: "Caveat", "Bradley Hand", "Segoe Print", cursive; font-size: 54px; font-weight: 700; line-height: 1.05; overflow-wrap: anywhere; }
.ap-end__win.is-in { animation: ap-win-in .65s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes ap-win-in { from { opacity: 0; transform: scale(.55) rotate(-5deg); } }
.ap-confetto, .ap-end .ap-spark { position: absolute; z-index: 5; pointer-events: none; }
.ap-confetto { top: -24px; }
.ap-end .ap-spark { width: 22px; height: 22px; margin: -11px 0 0 -11px; }

/* The gage: a deck, then a card among three, then the gage in large. */
.ap-pick { margin-top: 14px; animation: ap-up-in .5s cubic-bezier(.2, .8, .2, 1) both; }
.ap-pick[hidden], .ap-next[hidden], .ap-pick__after[hidden], .ap-pick__note[hidden], .ap-decks[hidden], .ap-fan[hidden], .ap-reveal[hidden] { display: none; }
@keyframes ap-up-in { from { opacity: 0; transform: translateY(18px); } }
.ap-pick__note { margin: 0 0 6px; color: var(--ap-pale); font-size: 13px; font-weight: 900; letter-spacing: .04em; }
.ap-pick__ask { min-height: 24px; margin: 0; font-size: 18px; font-weight: 900; line-height: 1.3; text-wrap: balance; }
.ap-pick__ask em { color: var(--ap-ember); font-style: normal; }
.ap-pick__box { display: grid; place-items: center; min-height: 248px; margin-top: 8px; }
.ap-pick__box > * { grid-area: 1 / 1; }
.ap-decks { display: flex; justify-content: center; gap: 18px; }
.ap-deck { position: relative; width: 148px; height: 190px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; animation: ap-bob 3.2s ease-in-out infinite alternate; }
.ap-deck + .ap-deck { animation-delay: -1.6s; }
@keyframes ap-bob { to { transform: translateY(-6px); } }
.ap-deck__card, .ap-deck__face { position: absolute; inset: 0; border-radius: 18px; }
.ap-deck__card:nth-child(1) { transform: rotate(-8deg) translate(-7px, 7px); opacity: .5; }
.ap-deck__card:nth-child(2) { transform: rotate(5deg) translate(6px, 4px); opacity: .75; }
.ap-deck__face { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; box-shadow: 0 6px 0 rgba(40, 6, 30, .35), 0 16px 26px -12px rgba(20, 2, 16, .6); }
.ap-deck--soft .ap-deck__card, .ap-deck--soft .ap-deck__face, .ap-gcard--soft .ap-gcard__back, .ap-reveal--soft .ap-reveal__back { background: linear-gradient(160deg, #fff6f9 0%, #ffc4d8 100%); color: var(--ap-prune); }
.ap-deck--hot .ap-deck__card, .ap-deck--hot .ap-deck__face, .ap-gcard--hot .ap-gcard__back, .ap-reveal--hot .ap-reveal__back { background: linear-gradient(160deg, #ff5a95 0%, #b1166f 55%, #5b1650 100%); color: #fff; }
.ap-deck__face > svg { width: 40px; height: 40px; }
.ap-deck--soft .ap-deck__face > svg { color: var(--ap-rose); }
.ap-deck__name { font-family: "Caveat", "Bradley Hand", "Segoe Print", cursive; font-size: 34px; font-weight: 700; line-height: .9; }
.ap-deck__sub { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 10px; background: rgba(255, 255, 255, .22); font-size: 10.5px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.ap-deck--soft .ap-deck__sub { background: rgba(196, 40, 91, .12); color: var(--ap-rose); }
.ap-deck.is-suggested .ap-deck__face { box-shadow: 0 0 0 3px var(--ap-ember), 0 6px 0 rgba(40, 6, 30, .35), 0 16px 26px -12px rgba(20, 2, 16, .6); }
.ap-deck.is-gone { animation: ap-deck-gone .35s ease both; pointer-events: none; }
@keyframes ap-deck-gone { to { opacity: 0; transform: translateY(26px) scale(.9); } }
.ap-fan { position: relative; width: 100%; height: 248px; }
.ap-gcard { position: absolute; left: 50%; top: 38px; width: 118px; height: 170px; margin-left: -59px; padding: 0; border: 0; background: none; color: inherit; perspective: 900px; cursor: pointer; transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .45s ease; }
.ap-gcard__back { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 16px; box-shadow: 0 5px 0 rgba(40, 6, 30, .35), 0 14px 22px -12px rgba(20, 2, 16, .6); }
.ap-gcard__back b, .ap-reveal__back b { font-family: "Caveat", "Bradley Hand", "Segoe Print", cursive; font-weight: 700; line-height: .8; }
.ap-gcard__back b { font-size: 64px; }
.ap-gcard__back small, .ap-reveal__back small { margin-top: 4px; font-size: 10.5px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.ap-reveal { position: relative; width: min(300px, 100%); perspective: 1100px; }
.ap-reveal__inner { position: relative; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.ap-reveal.is-up .ap-reveal__inner { transform: rotateY(180deg); }
.ap-reveal__front, .ap-reveal__back { border-radius: 22px; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.ap-reveal__front { position: relative; padding: 18px 20px 20px; overflow: hidden; background: linear-gradient(170deg, #fffdf8, #fbf3e6); color: var(--ap-prune); box-shadow: 0 0 0 3px var(--ap-ember), 0 8px 0 rgba(40, 6, 30, .3), 0 24px 36px -18px rgba(20, 2, 16, .6); transform: rotateY(180deg); }
.ap-reveal--hot .ap-reveal__front { box-shadow: 0 0 0 3px #ff5a95, 0 8px 0 rgba(40, 6, 30, .3), 0 24px 36px -18px rgba(20, 2, 16, .6); }
.ap-reveal__back { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 8px 0 rgba(40, 6, 30, .3), 0 24px 36px -18px rgba(20, 2, 16, .6); }
.ap-reveal__back b { font-size: 84px; }
.ap-reveal__tag { display: inline-block; padding: 6px 12px; border-radius: 12px; background: var(--ap-ember); color: var(--ap-ink); font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.ap-reveal--hot .ap-reveal__tag { background: #d4276f; color: #fff; }
.ap-reveal__text { margin: 12px 0 0; font-size: 22px; font-weight: 900; line-height: 1.3; text-wrap: balance; }
.ap-reveal__text em { color: var(--ap-rose); font-style: normal; }
.ap-reveal__front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, .7) 50%, rgba(255, 255, 255, 0) 65%); transform: translateX(-130%); pointer-events: none; }
.ap-reveal.is-up .ap-reveal__front::after { animation: ap-shine 1.1s .55s ease both; }
@keyframes ap-shine { to { transform: translateX(130%); } }
.ap-kept { display: grid; gap: 10px; }
.ap-kept:empty { display: none; }
.ap-kept .ap-reveal { width: 100%; margin: 14px auto 0; }
.ap-kept .ap-reveal__inner { transform: none; transition: none; }
.ap-kept .ap-reveal__front { padding: 12px 16px; transform: none; }
.ap-kept .ap-reveal__back { display: none; }
.ap-kept .ap-reveal__text { margin-top: 8px; font-size: 16px; }
.ap-pick__after { display: flex; justify-content: center; margin-top: 14px; }
.ap-pick__go { height: 40px; padding: 0 18px; border: 0; border-radius: 20px; background: var(--ap-cream); box-shadow: 0 4px 0 rgba(20, 2, 16, .35); color: #a50c3a; font-size: 14px; font-weight: 900; cursor: pointer; }

/* What comes next: one mode above, made to be wanted (the coquine version; Brûlant after Coquine, Fantasmes after
   Brûlant), its cards fanned on the side, its padlock without the Pass; the revenge; a match at random. */
.ap-next { margin-top: 16px; animation: ap-up-in .5s cubic-bezier(.2, .8, .2, 1) both; }
.ap-tease { position: relative; display: grid; grid-template-columns: 1fr 112px; align-items: center; gap: 6px; width: 100%; min-height: 168px; padding: 18px 10px 18px 20px; border: 0; border-radius: 26px; overflow: hidden; background: linear-gradient(150deg, var(--t1, #ee57a4) 0%, var(--t2, #b3137a) 52%, var(--t3, #561552) 100%); box-shadow: 0 0 0 2px rgba(255, 214, 228, .4), 0 8px 0 rgba(20, 2, 16, .35), 0 24px 36px -16px rgba(20, 2, 16, .75); color: #fff; text-align: left; cursor: pointer; }
.ap-tease::before { content: ""; position: absolute; top: -60px; right: -40px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 236, 214, .3), rgba(255, 236, 214, 0)); pointer-events: none; }
.ap-tease::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, .28) 50%, rgba(255, 255, 255, 0) 62%); transform: translateX(-130%); pointer-events: none; animation: ap-shine 1.3s .7s ease both; }
.ap-tease:active { transform: translateY(3px); }
.ap-tease__text { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.ap-tease__title { font-family: "Caveat", "Bradley Hand", "Segoe Print", cursive; font-size: 32px; font-weight: 700; line-height: 1; }
.ap-tease__line { color: rgba(255, 255, 255, .9); font-size: 14px; font-weight: 800; line-height: 1.35; text-wrap: balance; }
.ap-tease__cta { display: inline-flex; align-items: center; gap: 7px; height: 40px; margin-top: 8px; padding: 0 16px; border-radius: 20px; background: var(--ap-cream); box-shadow: 0 4px 0 rgba(20, 2, 16, .35); color: #a50c3a; font-size: 14px; font-weight: 900; letter-spacing: .02em; }
.ap-tease__art { position: relative; height: 128px; }
.ap-tease__art span { position: absolute; left: 50%; top: 50%; width: 58px; height: 82px; margin: -41px 0 0 -29px; border-radius: 12px; background: linear-gradient(160deg, rgba(255, 255, 255, .95), rgba(255, 228, 238, .9)); box-shadow: 0 6px 12px -4px rgba(20, 2, 16, .55); }
.ap-tease__art span:nth-child(1) { transform: translate(-26px, 8px) rotate(-14deg); opacity: .7; }
.ap-tease__art span:nth-child(2) { transform: translate(26px, 8px) rotate(14deg); opacity: .7; }
.ap-tease__art span:nth-child(3) { display: flex; align-items: center; justify-content: center; color: var(--t2, #b3137a); animation: ap-bob 3s ease-in-out infinite alternate; }
.ap-tease__art svg { width: 30px; height: 30px; }
.ap-next__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.ap-next__pair .ap-big { padding: 0 8px; font-size: 15px; letter-spacing: .06em; white-space: nowrap; }
.ap-big--ghost { border: 2.5px solid rgba(255, 255, 255, .8); background: transparent; box-shadow: none; color: #fff; }
.ap-big--ghost svg { width: 20px; height: 20px; }

/* The word of a moment. */
.ap-toast { position: fixed; left: 50%; top: 262px; z-index: 70; max-width: calc(100% - 40px); padding: 10px 18px; border-radius: 22px; background: rgba(59, 20, 56, .94); color: #fff; font-size: 14px; font-weight: 800; line-height: 1.3; text-align: center; transform: translateX(-50%); animation: ap-toast-in .3s cubic-bezier(.2, .8, .2, 1) both; }
.ap-toast[hidden] { display: none; }
@keyframes ap-toast-in { from { opacity: 0; transform: translate(-50%, 10px); } }

@media (prefers-reduced-motion: reduce) {
  .ap-end__win.is-in, .ap-deck, .ap-deck.is-gone, .ap-pick, .ap-next, .ap-tease::after, .ap-tease__art span, .ap-reveal.is-up .ap-reveal__front::after, .ap-duel__score b.is-pop,
  .ap-card.is-in, .ap-card.is-out, .ap-turn__name.is-new, .ap-stage__veil, .ap-stage__panel, .ap-stage.is-leaving .ap-stage__panel, .ap-stage.is-leaving .ap-stage__veil, .ap-read__pill.is-won, .ap-end, .ap-toast, .ap-pod__hearts b.is-pop, .ap-card__heart.is-beating { animation: none; }
  .ap-duel__side, .ap-medal, .ap-duel__score, .ap-gcard, .ap-reveal__inner, .ap-end__scroll,
  .lc-game.ap, .ap-card__inner, .ap-pod, .ap-dot, .ap-read__pill, .ap-read__dot, .ap-wheel .ap-slice__dim, .ap-wheel .ap-slice__glow { transition: none; }
  .ap-end__floating { display: none; }
}
