#advent {
  --header-gradient: linear-gradient(90deg, rgba(10, 69, 166, 1), rgba(7, 146, 227, 1));
  --shadow-theme: 0 .15rem .6rem rgba(0, 0, 0, .1);
  --main-font: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text-dark-color);
}

#advent .btn-ghost {
  background: #fff; color: var(--text-dark-color); border-color: #dfe3ea;
}

#advent .btn-ghost:hover {
  border-color: var(--blue-theme-color); color: var(--blue-theme-color);
}

#advent .btn-ghost.is-active {
  background: var(--blue-theme-color); border-color: var(--blue-theme-color); color: #fff;
}

#advent .btn:disabled {
  opacity: .45; cursor: not-allowed;
}

#advent-hero .hero-steps {
  display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0 0 28px; padding: 0; list-style: none; font-weight: 300;
}

#advent-hero .hero-steps li {
  display: flex; align-items: center; gap: 8px;
}

#advent-hero .hero-steps b {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--main-color); font-weight: 700; font-size: .9rem;
}

#advent-hero .hero-snow {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none;
}

#advent .adv-card {
  background: #fff; border-radius: 1.5rem; box-shadow: var(--shadow-theme);
  padding: 20px; margin-top: -60px; position: relative; z-index: 2;
}

#advent .adv-card-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px;
}

#advent .adv-card-head h2 {
  margin: 0; font-size: 1.5rem; font-weight: 700;
}

#advent .adv-card-head .meta {
  color: #6b7a90; font-size: .95rem; margin-top: 2px;
}

#advent .adv-progress {
  display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 500;
}

#advent .adv-progress-bar {
  width: 140px; height: 8px; border-radius: 8px; background: #e8ebf1; overflow: hidden;
}

#advent .adv-progress-bar span {
  display: block; height: 100%; width: 0; background: var(--success-color); transition: width .6s;
}

#advent .tools {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}

#advent .zoom-chips {
  display: none; gap: 4px;
}

#advent .zoom-chips.is-visible {
  display: inline-flex;
}

#advent .zoom-chips button {
  border: 1px solid #dfe3ea; background: #fff; border-radius: 2rem; padding: .15rem .55rem; font: 500 .8rem var(--main-font); cursor: pointer; color: var(--text-dark-color);
}

#advent .zoom-chips button.is-active {
  background: var(--main-color); border-color: var(--main-color); color: #fff;
}

#advent .challenge {
  position: sticky; top: 10px; z-index: 30;
  display: none; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--secondary-color); color: #fff;
  border-radius: 1rem; padding: 12px 16px; margin-bottom: 14px;
  box-shadow: 0 .6rem 1.2rem rgba(0,0,0,.18);
}

#advent .challenge.is-visible {
  display: flex; animation: slideDown .35s ease-out;
}

#advent .challenge .c-icon {
  font-size: 1.6rem; color: var(--orange-color);
}

#advent .challenge .c-text {
  flex: 1 1 260px; line-height: 1.35;
}

#advent .challenge .c-day {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; opacity: .7;
}

#advent .challenge .c-target {
  font-size: 1.1rem;
}

#advent .challenge .c-target strong {
  color: var(--orange-light-color);
}

#advent .challenge .c-misses {
  font-size: .85rem; opacity: .75;
}

#advent .challenge .btn-ghost {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.35);
}

#advent .challenge .btn-ghost:hover {
  border-color: #fff; color: #fff;
}

#advent .challenge.shake {
  animation: shakeX .35s;
}

#advent .challenge .c-cooldown {
  position: absolute; left: 16px; right: 16px; bottom: 6px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; display: none;
}

#advent .challenge .c-cooldown.is-visible {
  display: block;
}

#advent .challenge .c-cooldown span {
  display: block; height: 100%; width: 100%; background: var(--orange-color);
}

#advent .challenge .c-misses.flash {
  animation: flash .5s;
}

@keyframes flash { 30% { color: var(--orange-light-color); transform: scale(1.04); } }

@keyframes slideDown { from { transform: translateY(-10px); opacity: 0; } }

@keyframes shakeX { 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }

#advent .scene-wrap {
  position: relative; border-radius: 1rem; overflow: hidden; background: radial-gradient(ellipse at 50% 35%, #ffffff, #e6eef9 75%);
}

#advent .scene {
  position: relative; width: 100%; aspect-ratio: 2200 / 1000;
  container-type: inline-size; user-select: none; -webkit-user-select: none;
}

#advent .scene-content {
  position: absolute; inset: 0;
}

#advent .scene-content > .illu {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none;
}

.demo-css-light {
  animation: twinkle 1.4s ease-in-out infinite alternate;
}

.demo-css-light:nth-child(2n) {
  animation-delay: -.7s;
}

@keyframes twinkle { from { opacity: .35; } to { opacity: 1; } }

.illu.no-demo .demo-css-light {
  animation: none;
}

#advent .scene.is-gated {
  pointer-events: none; filter: saturate(.6) brightness(.9);
}

#advent .adv-gate {
  display: none; margin-top: 14px; padding: 16px 18px; border-radius: 1rem; background: #eef5fd; border: 1px solid #d3e5f8; align-items: center; gap: 16px;
}

#advent .adv-gate.is-visible {
  display: flex;
}

#advent .adv-gate > i {
  font-size: 2.4rem; color: var(--main-color); flex: none;
}

#advent .adv-gate h3 {
  margin: 0 0 4px; font-size: 1.1rem; color: var(--main-color);
}

#advent .adv-gate p {
  margin: 0; color: var(--text-dark-color); font-size: .92rem; line-height: 1.45;
}

#advent .adv-gate .btn {
  flex: none;
}

@media (max-width: 600px) {
  #advent .adv-gate {
    flex-direction: column; text-align: center;
  }
}

#advent .scene.is-searching {
  cursor: crosshair;
}

#advent .scene.is-searching .case-hit,
#advent .scene.loupe-on .case-hit {
  cursor: inherit;
}

#advent .scene.is-cooldown,
#advent .scene.is-pending {
  cursor: wait;
}

#advent .scene.loupe-on {
  cursor: none;
}

#advent .game.is-playing.is-searching .game-stage {
  cursor: crosshair;
}

#advent .game.is-playing.loupe-on .game-stage {
  cursor: none;
}

#advent .game-snow {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; display: none;
  z-index: 30;
}

#advent .game.is-playing .game-snow {
  display: block;
}

.case-hit {
  cursor: pointer; pointer-events: visiblePainted; outline: none;
}

.case-hit.is-locked {
  cursor: not-allowed;
}

.door-glow {
  fill: none; stroke: var(--orange-color); stroke-opacity: 0; stroke-width: 2px; vector-effect: non-scaling-stroke; pointer-events: none;
}

.door-glow.is-on {
  animation: doorGlow 1.8s ease-out infinite;
}

.door-glow.is-on.fast {
  animation-duration: .6s;
}

.door-glow.is-focus {
  animation: none; stroke-opacity: 1; stroke-width: 3px;
}

@keyframes doorGlow { 0% { stroke-opacity: .95; stroke-width: 2px; } 100% { stroke-opacity: 0; stroke-width: 16px; } }

.door-num {
  font-family: var(--main-font); font-weight: 700; fill: #fff; paint-order: stroke; stroke: rgba(0,0,0,.5); stroke-width: 3px; stroke-linejoin: round; text-anchor: middle; dominant-baseline: central; pointer-events: none;
}

.door-num.is-hidden {
  display: none;
}

.inside-icon.opened {
  animation: insidePulse 1.6s ease-in-out infinite;
}

@keyframes insidePulse { 50% { opacity: .55; } }

#advent .marks {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible;
}

.miss {
  animation: missFade 1.3s ease-out forwards;
}

.miss circle {
  fill: rgba(237,74,54,.25); stroke: var(--danger-color); stroke-width: 4;
}

.miss path {
  stroke: var(--danger-color); stroke-width: 5; stroke-linecap: round;
}

@keyframes missFade { 0% { opacity: 0; transform: var(--t) scale(.4); } 15% { opacity: 1; transform: var(--t) scale(1.1); } 30% { transform: var(--t) scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: var(--t) scale(1); } }

.found {
  fill: rgba(59,206,111,.18); stroke: var(--success-color); stroke-width: 7; stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: draw .8s ease-out forwards;
}

@keyframes draw { to { stroke-dashoffset: 0; } }

.pending-mark {
  fill: none; stroke: #fff; stroke-width: 4; stroke-dasharray: 8 6; animation: spin 1s linear infinite; transform-box: fill-box; transform-origin: center;
}

.hint {
  fill: rgba(245,106,37,.08); stroke: var(--orange-color); stroke-width: 5; stroke-dasharray: 18 12; animation: spin 14s linear infinite; transform-box: fill-box; transform-origin: center;
}

@keyframes spin { to { transform: rotate(360deg); } }

#advent .loupe {
  position: absolute; left: 0; top: 0; width: 300px; height: 300px;
  overflow: hidden; pointer-events: none; z-index: 40;
  background: var(--lens-bg, #e9eff8);
  visibility: hidden; will-change: transform; transform-origin: 50% 50%;
}

#advent .loupe.is-visible {
  visibility: visible;
}

#advent .game.is-playing .loupe.is-warm:not(.is-visible) {
  visibility: visible; opacity: 0;
}

#advent .loupe-svg {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
}

#advent .loupe-cross {
  position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px rgba(0,0,0,.55);
}

#advent .scope {
  position: absolute; left: 0; top: 0; pointer-events: none; z-index: 41; visibility: hidden; transform-origin: 50% 50%; will-change: transform, opacity;
}

#advent .scope.is-visible {
  visibility: visible;
}

#advent .game.is-playing .scope.is-warm:not(.is-visible) {
  visibility: visible; opacity: 0 !important;
}

#advent .loupe-zoom {
  position: absolute; bottom: 12%; left: 50%; transform: translateX(-50%); background: rgba(8,62,155,.85); color: #fff; font: 500 11px var(--main-font); padding: 1px 7px; border-radius: 10px;
}

#advent .scene-hint {
  margin: 10px 2px 0; font-size: .9rem; color: #6b7a90; display: flex; gap: 8px; align-items: center;
}

#advent .game-stage {
  position: relative;
}

#advent .game:not(.is-playing) .scene {
  pointer-events: none;
}

#advent .launch {
  position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px;
  border: 0; padding: 0; cursor: pointer; border-radius: 1rem; font: inherit; color: #fff;
  background: linear-gradient(180deg, rgba(8,62,155,0) 30%, rgba(8,62,155,.45));
}

#advent .launch .l-btn {
  display: inline-flex; align-items: center; gap: 10px; background: var(--orange-color); color: #fff;
  font-weight: 500; font-size: 1.3rem; padding: .7rem 1.9rem; border-radius: 2rem; border: 3px solid #fff;
  box-shadow: 0 .8rem 1.6rem rgba(0,0,0,.25); transition: transform .2s, background .2s;
}

#advent .launch:hover .l-btn,
#advent .launch:focus-visible .l-btn {
  transform: scale(1.05); background: var(--orange-light-color);
}

#advent .launch .l-sub {
  font-size: .9rem; background: rgba(27,31,40,.7); padding: 3px 12px; border-radius: 1rem;
}

#advent .launch[hidden] {
  display: none;
}

body.is-playing {
  overflow: hidden;
}

#advent .game.is-playing {
  position: fixed; inset: 0; z-index: 2147483000; display: flex; flex-direction: column;
}

#advent .game.is-playing::before {
  content: ""; position: absolute; inset: 0; animation: fadeIn .35s ease-out;
  background: rgba(9,22,48,.55);
  -webkit-backdrop-filter: blur(14px) saturate(1.15); backdrop-filter: blur(14px) saturate(1.15);
}

#advent .game.is-playing .scene {
  --lens-bg: #3a4763;
}

body.eco .hero-snow,
body.eco .game-snow {
  display: none !important;
}

body.eco .game.is-playing::before {
  -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(9,22,48,.9);
}

body.eco .door-glow.is-on {
  animation: none; stroke-opacity: .9; stroke-width: 3px;
}

body.eco .inside-icon.opened {
  animation: none;
}

#advent .game.is-playing.is-card::before {
  -webkit-backdrop-filter: none; backdrop-filter: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(46,163,255,.16), transparent 55%), var(--bg-gray-extralight-color);
}

#advent .game.is-playing.is-card .scene {
  --lens-bg: #f6f6f9; background: radial-gradient(ellipse at 50% 35%, #ffffff, #e6eef9 75%); box-shadow: 0 0 0 8px #fff, 0 1rem 2.6rem rgba(8,62,155,.2);
}

#advent .game.is-playing .launch {
  display: none;
}

#advent .game.is-playing .game-stage {
  flex: 1; min-height: 0; display: grid; place-items: center; overflow: hidden;
}

#advent .game.is-playing .scene-wrap {
  overflow: visible; border-radius: 0; background: transparent;
}

#advent .game-bar {
  display: none; position: relative; z-index: 60; align-items: center; gap: 18px;
  padding: 10px 20px; min-height: 68px; color: #fff;
  background: var(--header-gradient); box-shadow: 0 .3rem 1rem rgba(8,62,155,.25);
}

#advent .game.is-playing .game-bar {
  display: flex; animation: slideDown .35s ease-out;
}

#advent .gb-brand {
  display: flex; align-items: center; gap: 12px; white-space: nowrap;
}

#advent .gb-brand img {
  height: 32px; width: auto;
}

#advent .gb-brand .gb-day {
  font-size: .85rem; background: rgba(255,255,255,.2); padding: 3px 12px; border-radius: 20px; font-weight: 300;
}

#advent .game-bar .challenge {
  position: static; margin: 0; padding: 0; background: none; box-shadow: none; border-radius: 0; flex: 1; min-width: 0;
}

#advent .game-bar .challenge.is-visible {
  animation: fadeIn .3s;
}

#advent .game-bar .challenge .c-icon {
  color: #fff;
}

#advent .game-bar .challenge .c-target strong {
  color: var(--orange-color); background: #fff; padding: 0 10px; border-radius: 1rem;
}

#advent .game-bar .challenge .btn-ghost {
  border-color: rgba(255,255,255,.6);
}

#advent .game-bar .c-cooldown {
  left: 0; right: 0; bottom: 0; border-radius: 0; height: 4px; background: rgba(255,255,255,.2);
}

#advent .gb-idle {
  flex: 1; font-size: 1rem; font-weight: 300;
}

#advent .game-bar .challenge.is-visible ~ .gb-idle {
  display: none;
}

#advent .game-bar .tools .btn-ghost {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.6);
}

#advent .game-bar .tools .btn-ghost:hover {
  background: rgba(255,255,255,.12); border-color: #fff; color: #fff;
}

#advent .game-bar .tools .btn-ghost.is-active {
  background: #fff; border-color: #fff; color: var(--main-color);
}

#advent .game-bar .zoom-chips button {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.6);
}

#advent .game-bar .zoom-chips button.is-active {
  background: #fff; border-color: #fff; color: var(--main-color);
}

#advent .game-bar #exitBtn {
  background: var(--orange-color); border-color: #fff;
}

#advent .game-bar #exitBtn:hover {
  background: var(--orange-light-color);
}

#advent .game-bar kbd {
  font: 500 .72rem var(--main-font); border: 1px solid currentColor; border-radius: 4px; padding: 0 4px; margin-left: 2px; opacity: .75;
}

#advent .reward-panel {
  border-radius: 1.25rem; overflow: hidden; margin-bottom: 18px; border: 1px solid #d9e6f7; box-shadow: 0 .6rem 1.6rem rgba(8,62,155,.14); scroll-margin-top: 16px;
}

#advent .reward-panel[hidden] {
  display: none;
}

#advent .reward-panel.is-new {
  animation: pop .5s cubic-bezier(.3,1.4,.5,1);
}

#advent .rp-top {
  background: var(--header-gradient); color: #fff; display: flex; align-items: center; gap: 16px; padding: 16px 20px;
}

#advent .rp-top .m-icon {
  font-size: 2.4rem; color: #ffd36b; flex: none;
}

#advent .rp-top h3 {
  margin: 0; font-size: 1.45rem;
}

#advent .rp-top p {
  margin: 2px 0 0; font-weight: 300;
}

#advent .rp-close {
  margin-left: auto; align-self: flex-start; background: none; border: 0; color: #fff; font-size: 1.4rem; cursor: pointer; opacity: .8; padding: 0;
}

#advent .rp-close:hover {
  opacity: 1;
}

#advent .rp-body {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 32px; align-items: center; padding: 20px; background: #fff;
}

#advent .rp-body .reward {
  margin-bottom: 10px;
}

#advent .rp-body .code-box {
  margin: 0; max-width: 480px;
}

#advent .rp-actions {
  display: flex; flex-direction: column; gap: 6px; text-align: center;
}

#advent .rp-actions .btn {
  justify-content: center;
}

#advent .rp-actions .modal-note {
  margin-top: 4px;
}

@media (max-width: 760px) {
  #advent .rp-body {
    grid-template-columns: 1fr;
  }
}

@keyframes fadeIn { from { opacity: 0; } }

#advent .adv-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px;
}

@media (max-width: 800px) {
  #advent .adv-steps {
    grid-template-columns: 1fr;
  }
}

#advent .adv-step {
  background: #fff; border-radius: .5rem; box-shadow: var(--shadow-theme); padding: 22px;
}

#advent .adv-step .s-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; color: #fff; background: var(--header-gradient); margin-bottom: 12px;
}

#advent .adv-step h3 {
  margin: 0 0 6px; font-size: 1.15rem;
}

#advent .adv-step p {
  margin: 0; color: #5a6a80; line-height: 1.5;
}

#advent .reward {
  font-size: 1.25rem; font-weight: 700; margin: 0 0 14px;
}

#advent .reward small {
  display: block; font-weight: 400; font-size: .9rem; color: #6b7a90; margin-top: 2px;
}

#advent .code-box {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 2px dashed var(--orange-color); border-radius: .75rem; padding: 10px 10px 10px 16px; background: #fff7f2; margin-bottom: 18px;
}

#advent .code-box code {
  font: 700 1.25rem ui-monospace, Menlo, monospace; letter-spacing: .08em; color: var(--orange-dark-color, #cc622d);
}

#advent .modal-note {
  font-size: .8rem; color: #8a97a9; margin-top: 12px;
}

@keyframes fadeIn { from { opacity: 0; } }

@keyframes pop { from { transform: scale(.85); opacity: 0; } }

#advent .adv-toasts {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 2147483002; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: calc(100% - 32px);
}

#advent .adv-toast {
  background: var(--secondary-color); color: #fff; padding: 10px 18px; border-radius: 2rem; box-shadow: 0 .6rem 1.2rem rgba(0,0,0,.25); font-size: .95rem; display: flex; gap: 10px; align-items: center; animation: toastIn .3s ease-out; max-width: 100%;
}

#advent .adv-toast.out {
  animation: toastOut .3s ease-in forwards;
}

@keyframes toastIn { from { transform: translateY(12px); opacity: 0; } }

@keyframes toastOut { to { transform: translateY(12px); opacity: 0; } }

#advent .burst {
  position: fixed; inset: 0; pointer-events: none; z-index: 2147483001;
}

#advent .burst span {
  position: absolute; left: 0; top: 0; font-size: 16px; line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
  .door-glow.is-on {
    animation: none; stroke-opacity: 1; stroke-width: 3px;
  }
}

#snow { display: none !important; }

#advent .adv-card { margin-top: 0; }

#advent .adv-account {
  position: relative; z-index: 3; margin: -30px 0 18px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: #fff; border-radius: 1.25rem; box-shadow: var(--shadow-theme); padding: 16px 20px; border: 2px solid transparent;
}
#advent .adv-account-icon { font-size: 2.2rem; color: var(--main-color); flex: none; }
#advent .adv-account-text { flex: 1 1 320px; min-width: 0; }
#advent .adv-account h3 { margin: 0 0 2px; font-size: 1.15rem; font-weight: 700; color: var(--main-color); }
#advent .adv-account p { margin: 0; color: #5a6a80; line-height: 1.45; }
#advent .adv-account .adv-account-error { color: var(--danger-color); margin-top: 6px; }
#advent .adv-account-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
#advent .adv-account.is-inactive { border-color: #ffd9c4; background: #fff9f5; }
#advent .adv-account.is-inactive .adv-account-icon { color: var(--orange-color); }
#advent .adv-account.is-active { padding: 10px 20px; }
#advent .adv-account.is-active h3 { font-size: 1rem; }
#advent .adv-logout { color: #6b7a90; font-size: .9rem; text-decoration: underline; }
#advent .adv-account.is-attention { animation: advAttention 1.2s ease-out; }
@keyframes advAttention { 0%, 40% { border-color: var(--orange-color); box-shadow: 0 0 0 6px rgba(245,106,37,.25); } 100% { border-color: transparent; } }

#advent .rw-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
#advent .rw-list li { display: flex; align-items: baseline; gap: 10px; font-size: 1.15rem; font-weight: 700; }
#advent .rw-list li i { color: var(--orange-color); }
#advent .rw-list li small { font-weight: 400; font-size: .85rem; color: #6b7a90; }
#advent .rw-list li.rw-draw, #advent .rw-list li.rw-final { font-size: .95rem; font-weight: 500; color: var(--main-color); }
#advent .rw-list li.rw-draw i, #advent .rw-list li.rw-final i { color: var(--blue-theme-color); }

#advent .adv-claims { background: #fff; border-radius: 1.25rem; box-shadow: 0 .6rem 1.6rem rgba(8,62,155,.14); border: 2px solid var(--orange-color); padding: 18px 20px; margin-bottom: 18px; }
#advent .adv-claims[hidden] { display: none; }
#advent .adv-claims h2 { font-size: 1.3rem; font-weight: 700; margin: 0 0 12px; color: var(--main-color); }
#advent .adv-claims h2 i { color: var(--orange-color); }
#advent .claim { border-top: 1px solid #edf0f5; padding: 12px 0; display: grid; gap: 6px; }
#advent .claim:first-child { border-top: 0; padding-top: 0; }
#advent .cl-title { font-weight: 700; font-size: 1.1rem; }
#advent .cl-title i { color: var(--orange-color); margin-right: 4px; }
#advent .cl-label { font-size: 1.05rem; }
#advent .cl-deadline { font-size: .85rem; color: #6b7a90; }
#advent .cl-action { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
#advent .cl-service { min-width: 260px; max-width: 100%; padding: .35rem .6rem; border: 1px solid #dfe3ea; border-radius: .6rem; font: inherit; }
#advent .cl-done { color: var(--success-color); font-weight: 500; }
#advent .claim .code-box { margin: 0; }

#advent .adv-winners { background: #fff; border-radius: 1.25rem; box-shadow: var(--shadow-theme); padding: 20px; margin-top: 24px; }
#advent .adv-winners h2 { font-size: 1.3rem; font-weight: 700; margin: 0 0 6px; }
#advent .adv-winners h2 i { color: var(--orange-color); }
#advent .adv-winners p { color: #5a6a80; margin: 0 0 12px; line-height: 1.5; }
#advent #winnersList { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
#advent #winnersList li { display: flex; gap: 14px; align-items: baseline; padding: 8px 12px; border-radius: .75rem; background: var(--bg-gray-extralight-color); flex-wrap: wrap; }
#advent #winnersList li.is-me { background: #fff3ea; outline: 2px solid var(--orange-color); }
#advent #winnersList .wn-day { font-weight: 700; min-width: 140px; }
#advent #winnersList .wn-name b { color: var(--orange-color); margin-left: 6px; }
#advent #winnersList .wn-count { margin-left: auto; font-size: .85rem; color: #6b7a90; }
#advent #winnersList .wn-empty { color: #6b7a90; }

#advent .adv-rules { margin-top: 32px; color: #5a6a80; font-size: .92rem; line-height: 1.55; }
#advent .adv-rules h2 { font-size: 1.1rem; font-weight: 700; color: var(--text-dark-color); }
#advent .adv-missing { margin: 10px 0 0; color: var(--danger-color); }

body.is-playing #advent .adv-card { z-index: auto; }

.adv-test { position: fixed; left: 12px; bottom: 12px; z-index: 2147483003; font: 13px/1.4 system-ui, sans-serif; }
.adv-test-toggle { background: #111; color: #fff; border: 0; border-radius: 2rem; padding: 8px 14px; cursor: pointer; box-shadow: 0 .4rem 1rem rgba(0,0,0,.3); }
.adv-test-body { display: none; background: #111; color: #e8e8e8; border-radius: 12px; padding: 14px; margin-bottom: 8px; width: 380px; max-height: 80vh; overflow: auto; box-shadow: 0 .8rem 2rem rgba(0,0,0,.4); }
.adv-test.is-open .adv-test-body { display: block; }
.adv-test h4 { margin: 0 0 10px; font-size: 13px; color: #ffb38c; text-transform: uppercase; letter-spacing: .06em; }
.adv-test h4 small { text-transform: none; color: #999; letter-spacing: 0; }
.adv-test label, .adv-test .t-row { display: flex; align-items: center; gap: 6px; margin: 6px 0; flex-wrap: wrap; }
.adv-test select, .adv-test input { background: #222; color: #fff; border: 1px solid #444; border-radius: 6px; padding: 4px 6px; font: inherit; }
.adv-test input[type=number] { width: 70px; }
.adv-test #tService { width: 100%; }
.adv-test button[data-act] { background: #2a2a2a; color: #fff; border: 1px solid #555; border-radius: 6px; padding: 5px 9px; cursor: pointer; }
.adv-test button[data-act]:hover { border-color: #ffb38c; }
.adv-test button.t-danger { border-color: #a33; color: #ffb0a8; }
.adv-test hr { border: 0; border-top: 1px solid #2c2c2c; margin: 10px 0; }
.adv-test pre { background: #1c1c1c; border-radius: 6px; padding: 8px; margin: 8px 0 0; max-height: 260px; overflow: auto; white-space: pre-wrap; font: 11px/1.45 ui-monospace, Menlo, monospace; color: #cfe; }

#advent .adv-loading {
  position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; align-content: center; gap: 12px;
  border-radius: 1rem; background: radial-gradient(ellipse at 50% 35%, #ffffff, #e6eef9 75%); color: var(--main-color);
  transition: opacity .45s ease-out, visibility 0s linear .45s;
}
#advent .adv-loading.is-done { opacity: 0; visibility: hidden; pointer-events: none; }

#advent .adv-loading-spin {
  width: 44px; height: 44px; border-radius: 50%; box-sizing: border-box;
  border: 4px solid #d9e3f1; border-top-color: var(--blue-theme-color);
  animation: advSpin .9s linear infinite;
}
#advent .adv-loading-text { font-weight: 500; }
#advent .adv-loading-bar { width: min(260px, 60%); height: 6px; border-radius: 6px; background: #d9e3f1; overflow: hidden; }
#advent .adv-loading-bar span { display: block; height: 100%; width: 0; background: var(--orange-color); transition: width .2s; }
@keyframes advSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #advent .adv-loading-spin { animation-duration: 2.4s; } }

#advent .gb-slot {
  flex: 1; min-width: 0; display: flex; align-items: center;
}

#advent .game.is-searching .gb-idle {
  display: none;
}

#advent .game-bar .challenge {
  gap: 16px; flex-wrap: nowrap;
}

#advent .challenge .c-icon {
  flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 1.35rem;
  background: #fff; color: var(--orange-color); box-shadow: 0 .3rem .8rem rgba(0,0,0,.15);
}

#advent .game-bar .challenge .c-icon {
  color: var(--orange-color);
}

#advent .challenge .c-text {
  flex: 1 1 auto; min-width: 0;
}

#advent .game-bar .challenge .c-day {
  font-size: .75rem; opacity: .85;
}

#advent .game-bar .challenge .c-target {
  font-size: 1.4rem; font-weight: 500; line-height: 1.25;
}

#advent .game-bar .challenge .c-target strong {
  display: inline-block; padding: 1px 12px; border-radius: 1rem; font-weight: 700;
}

#advent .game-bar .challenge .c-misses {
  font-size: .82rem; opacity: .85; margin-top: 1px;
}

#advent .challenge .c-actions {
  display: flex; align-items: center; gap: 12px; flex: none;
}

#advent .c-hint {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 16px 5px 5px; border-radius: 2rem; cursor: pointer;
  font: inherit; text-align: left; line-height: 1.15; white-space: nowrap;
  color: #fff; background: rgba(255,255,255,.12); border: 2px solid rgba(255,255,255,.6);
  transition: background .2s, border-color .2s, transform .2s;
}

#advent .c-hint .c-bulb {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 1.05rem; background: rgba(255,255,255,.18);
}

#advent .c-hint-text b {
  display: block; font-weight: 600; font-size: .95rem;
}

#advent .c-hint-text small {
  display: block; font-size: .74rem; opacity: .85;
}

#advent .c-hint[data-state="locked"] {
  cursor: default; opacity: .85;
}

#advent .c-hint[data-state="locked"] .c-bulb i {
  opacity: .55;
}

#advent .c-hint[data-state="ready"] {
  background: #ffd43b; border-color: #fff; color: #3b2a00; animation: hintRing 1.4s ease-out infinite;
}

#advent .c-hint[data-state="ready"] .c-bulb {
  background: #fff; color: #f08c00;
}

#advent .c-hint[data-state="ready"] .c-bulb i {
  animation: bulbBlink 1s ease-in-out infinite;
}

#advent .c-hint[data-state="ready"]:hover {
  transform: scale(1.04);
}

#advent .c-hint[data-state="used"] {
  border-color: #ffd43b;
}

#advent .c-hint[data-state="used"] .c-bulb {
  color: #ffd43b;
}

#advent .c-hint[data-state="used"]:hover {
  background: rgba(255,255,255,.22);
}

@keyframes bulbBlink {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 6px rgba(255,190,0,.95)); }
  50% { opacity: .35; filter: none; }
}

@keyframes hintRing {
  0% { box-shadow: 0 0 0 0 rgba(255,212,59,.75); }
  100% { box-shadow: 0 0 0 14px rgba(255,212,59,0); }
}



#advent .challenge .c-tips {
  display: none;
}

#advent .challenge.is-highlight .c-target strong {
  animation: targetPop .8s ease-out 2;
}

@keyframes targetPop {
  0% { transform: none; box-shadow: 0 0 0 0 rgba(255,212,59,0); }
  30% { transform: scale(1.08); box-shadow: 0 0 0 6px rgba(255,212,59,.85); }
  100% { transform: none; box-shadow: 0 0 0 0 rgba(255,212,59,0); }
}

/* Colonne du défi, à gauche de l'illustration (écrans larges) */
#advent .game-side {
  display: none; position: absolute; left: 24px; top: 50%; transform: translateY(-50%); z-index: 50; max-height: calc(100% - 32px); overflow: auto;
}

#advent .game.is-wide .game-side {
  display: block;
}

#advent .game-side .challenge {
  position: relative; top: auto; margin: 0; flex-direction: column; align-items: stretch; gap: 16px;
  background: #fff; color: var(--text-dark-color); border-radius: 1.25rem; padding: 22px 22px 26px; box-shadow: 0 1rem 2.4rem rgba(9,22,48,.35);
}

#advent .game-side .challenge .c-icon {
  background: var(--orange-color); color: #fff;
}

#advent .game-side .challenge .c-day {
  color: #6b7a90; opacity: 1;
}

#advent .game-side .challenge .c-find {
  display: block; font-size: 1rem; color: #4a5568; margin-top: 6px;
}

#advent .game-side .challenge .c-target strong {
  display: block; font-size: 1.65rem; line-height: 1.2; color: var(--orange-color); font-weight: 700; border-radius: .5rem;
}

#advent .game-side .challenge .c-misses {
  font-size: .9rem; color: #6b7a90; opacity: 1; margin-top: 8px;
}

#advent .game-side .challenge .c-actions {
  flex-direction: column; align-items: stretch; gap: 8px;
}

#advent .game-side .c-hint {
  padding: 8px 16px 8px 8px; color: var(--text-dark-color); background: #f1f4f9; border-color: #dfe3ea;
}

#advent .game-side .c-hint .c-bulb {
  width: 40px; height: 40px; font-size: 1.2rem; background: #fff;
}

#advent .game-side .c-hint-text b {
  font-size: 1.05rem;
}

#advent .game-side .c-hint[data-state="ready"] {
  background: #ffd43b; border-color: #f5b400; color: #3b2a00;
}

#advent .game-side .c-hint[data-state="used"] {
  background: #fff8e1; border-color: #ffd43b;
}

#advent .game-side .c-hint[data-state="used"] .c-bulb {
  color: #f08c00;
}


#advent .game-side .challenge .c-tips {
  display: block; list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid #e8ebf1; font-size: .88rem; color: #4a5568;
}

#advent .game-side .challenge .c-tips li {
  display: flex; gap: 10px; align-items: baseline; margin: 6px 0;
}

#advent .game-side .challenge .c-tips i {
  color: var(--main-color); width: 18px; text-align: center; flex: none;
}

#advent .game-side .challenge .c-tips b {
  font-weight: 600; border: 1px solid #cfd6e2; border-radius: 4px; padding: 0 5px; font-size: .8rem;
}

#advent .game-side .challenge .c-cooldown {
  left: 22px; right: 22px; bottom: 12px; background: #e8ebf1;
}

#advent .game-side .challenge.is-visible {
  animation: fadeIn .3s;
}

/* Présentation du défi à son ouverture */
#advent .c-intro {
  position: absolute; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px;
  background: rgba(9,22,48,.4); animation: fadeIn .25s ease-out;
}

#advent .c-intro[hidden] {
  display: none;
}

#advent .c-intro.is-leaving {
  animation: fadeOut .42s ease-in forwards;
}

#advent .ci-card {
  background: #fff; color: var(--text-dark-color); border-radius: 1.5rem; padding: 30px 40px 32px; width: min(640px, 100%); text-align: center;
  box-shadow: 0 1.5rem 3rem rgba(0,0,0,.35); animation: popIn .35s cubic-bezier(.2,.8,.2,1.2);
}

#advent .ci-day {
  font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: #6b7a90;
}

#advent .ci-find {
  font-size: 1.15rem; margin-top: 14px; color: #4a5568;
}

#advent .ci-target {
  font-size: clamp(1.6rem, 2.4vw, 2.3rem); font-weight: 700; line-height: 1.15; color: var(--orange-color); margin: 4px 0 16px;
}

#advent .ci-tip {
  color: #4a5568; margin: 0 auto 22px; max-width: 440px;
}

@keyframes popIn { from { transform: scale(.85); opacity: 0; } }

@keyframes fadeOut { to { opacity: 0; } }

/* Indice : cercle plus marqué + onde à l'apparition */
.hint-halo {
  fill: none; stroke: rgba(9,22,48,.4); stroke-width: 15;
}

#advent .hint {
  fill: rgba(245,106,37,.12); stroke-width: 7;
}

.hint-ping {
  fill: none; stroke: var(--orange-color); stroke-width: 8; transform-box: fill-box; transform-origin: center;
  animation: hintPing 1.15s ease-out both;
}

@keyframes hintPing {
  0% { transform: scale(2.6); opacity: 0; }
  35% { opacity: 1; }
  100% { transform: scale(1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  #advent .c-hint[data-state="ready"], #advent .c-hint[data-state="ready"] .c-bulb i { animation: none; }
  #advent .c-hint[data-state="ready"] { box-shadow: 0 0 0 4px rgba(255,212,59,.6); }
}

#advent .game-bar .challenge .c-text {
  flex: 0 1 auto;
}

#advent .game-bar .challenge .c-actions {
  margin-left: 8px;
}

@media (min-width: 1600px) {
  #advent .game-bar .challenge .c-target { font-size: 1.6rem; }
  #advent .game-bar .challenge .c-icon { width: 52px; height: 52px; font-size: 1.5rem; }
  #advent .game-bar .c-hint { padding: 6px 18px 6px 6px; }
  #advent .game-bar .c-hint .c-bulb { width: 38px; height: 38px; font-size: 1.15rem; }
  #advent .game-bar .c-hint-text b { font-size: 1.05rem; }
}

#advent .game-bar .challenge .c-target strong {
  display: inline; padding: 1px 10px; line-height: 1.45; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

@media (max-width: 1400px) {
  #advent .game-bar { gap: 12px; padding: 8px 14px; }
  #advent .gb-brand .gb-day { display: none; }
  #advent .game-bar .challenge { gap: 12px; }
  #advent .game-bar .challenge .c-icon { width: 40px; height: 40px; font-size: 1.15rem; }
  #advent .game-bar .challenge .c-target { font-size: 1.2rem; }
  #advent .game-bar .challenge .c-actions { margin-left: 0; gap: 8px; }
}

#advent .game.is-searching .gb-brand .gb-day {
  display: none;
}

#advent .adv-rules-full {
  margin: 12px 0 0;
}

#advent .adv-rules-full a {
  font-weight: 500;
}

.adv-regl-back {
  font-size: .95rem; text-decoration: none; opacity: .9;
}

.adv-regl-back:hover {
  opacity: 1; text-decoration: underline;
}

#advent .adv-regl {
  background: #fff; border-radius: 1.5rem; box-shadow: var(--shadow-theme); padding: 36px 44px; margin: -40px auto 60px; max-width: 920px; position: relative; z-index: 2; line-height: 1.6;
}

#advent .adv-regl h2 {
  font-size: 1.3rem; font-weight: 700; margin: 34px 0 12px; scroll-margin-top: 140px;
}

#advent .adv-regl section:first-of-type h2 {
  margin-top: 8px;
}

#advent .adv-regl p,
#advent .adv-regl li {
  color: #3d4757;
}

#advent .adv-regl ul {
  padding-left: 1.2rem; list-style: disc;
}

#advent .adv-regl li {
  margin-bottom: 8px;
}

#advent .adv-regl-note {
  background: #fff8e1; border: 1px solid #ffe08a; border-radius: .75rem; padding: 12px 16px; font-size: .92rem;
}

#advent .adv-regl-toc {
  background: var(--bg-gray-extralight-color, #f5f7fa); border-radius: 1rem; padding: 18px 22px; margin-bottom: 8px;
}

#advent .adv-regl-toc ol {
  margin: 0; padding-left: 1.3rem; columns: 2; column-gap: 32px; font-size: .95rem; list-style: decimal;
}

#advent .adv-regl-toc li {
  margin-bottom: 4px; break-inside: avoid;
}

#advent .adv-regl-table {
  overflow-x: auto; margin: 12px 0 16px;
}

#advent .adv-regl-table table {
  width: 100%; border-collapse: collapse; font-size: .92rem;
}

#advent .adv-regl-table th,
#advent .adv-regl-table td {
  border-bottom: 1px solid #e8ebf1; padding: 7px 10px; text-align: left; vertical-align: top;
}

#advent .adv-regl-table th {
  background: #f5f7fa; font-weight: 600; color: var(--text-dark-color);
}

#advent .adv-regl-table td:first-child {
  white-space: nowrap;
}

@media (max-width: 767px) {
  #advent .adv-regl { padding: 22px 18px; border-radius: 1rem; }
  #advent .adv-regl-toc ol { columns: 1; }
}

/* Case mystère : roulette des lots */
#advent .rw-reel {
  grid-column: 1 / -1; margin: 0; min-width: 0;
}

#advent .rw-reel[hidden] {
  display: none;
}

#advent .reel-title {
  margin: 0 0 8px; font-weight: 600; color: var(--main-color);
}

#advent .reel-title i {
  color: #f08c00;
}

#advent .reel-window {
  position: relative; height: 104px; overflow: hidden; border-radius: 1rem;
  background: linear-gradient(180deg, #0d2c63, #123a80); box-shadow: inset 0 0 0 2px rgba(255,255,255,.08), inset 0 .4rem 1rem rgba(0,0,0,.35);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

#advent .reel-strip {
  position: absolute; left: 0; top: 12px; display: flex; gap: 10px; padding: 0 10px; will-change: transform;
}

#advent .reel-card {
  flex: none; width: 122px; height: 80px; border-radius: .8rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: #fff; color: var(--text-dark-color); font-weight: 700; font-size: .95rem; text-align: center; line-height: 1.1; padding: 0 6px;
  box-shadow: 0 .25rem .6rem rgba(0,0,0,.25); transition: transform .35s, box-shadow .35s;
}

#advent .reel-card i {
  font-size: 1.4rem;
}

#advent .reel-card.t-credit i { color: #e8a200; }
#advent .reel-card.t-days i { color: var(--blue-theme-color); }
#advent .reel-card.t-month i { color: var(--orange-color); }

#advent .reel-card.t-month {
  background: linear-gradient(160deg, #fff7e0, #ffe3a3);
}

#advent .reel-marker {
  position: absolute; left: 50%; top: 4px; bottom: 4px; width: 3px; margin-left: -1.5px; border-radius: 3px; background: #ffd43b;
  box-shadow: 0 0 10px rgba(255,212,59,.9);
}

#advent .reel-marker::before,
#advent .reel-marker::after {
  content: ""; position: absolute; left: 50%; margin-left: -8px; border: 8px solid transparent;
}

#advent .reel-marker::before { top: -4px; border-top-color: #ffd43b; }
#advent .reel-marker::after { bottom: -4px; border-bottom-color: #ffd43b; }

#advent .rw-reel.is-done .reel-card.is-win {
  transform: scale(1.08); box-shadow: 0 0 0 3px #ffd43b, 0 0 22px rgba(255,212,59,.85);
}

#advent .rw-reel.is-done .reel-marker {
  opacity: 0; transition: opacity .3s;
}

#advent .rw-list li.is-revealed {
  animation: popIn .45s cubic-bezier(.2,.8,.2,1.3);
}

/* Visiteur non connecté ou sans service payant : aperçu grisé + carte cadenas */
#advent .game.is-locked:not(.is-playing) .scene {
  filter: grayscale(1) brightness(.95) contrast(.9);
}

#advent .game.is-locked .launch {
  display: none;
}

#advent .adv-lock {
  position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 16px; border-radius: 1rem;
  background: radial-gradient(ellipse at center, rgba(9,22,48,.2), rgba(9,22,48,.55));
}

#advent .game.is-playing .adv-lock {
  display: none;
}

#advent .adv-lock-card {
  background: #fff; border-radius: 1.25rem; padding: 26px 32px 22px; max-width: 470px; text-align: center; box-shadow: 0 1rem 2.4rem rgba(9,22,48,.35);
}

#advent .adv-lock-icon {
  width: 58px; height: 58px; margin: -56px auto 12px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem;
  background: var(--orange-color); color: #fff; border: 4px solid #fff; box-shadow: 0 .4rem 1rem rgba(0,0,0,.2);
}

#advent .adv-lock-card h3 {
  font-size: 1.35rem; font-weight: 700; margin: 0 0 8px;
}

#advent .adv-lock-card p {
  color: #4a5568; margin: 0 0 18px;
}

#advent .adv-lock-peek {
  display: block; margin: 14px auto 0; background: none; border: 0; padding: 4px; font: inherit; font-size: .9rem; color: #6b7a90; text-decoration: underline; cursor: pointer;
}

#advent .adv-lock-peek:hover {
  color: var(--main-color);
}

#advent .game-bar .gb-login {
  background: #fff; color: var(--main-color); border: 1px solid #fff; font-weight: 600;
}

#advent .game-bar .gb-login:hover {
  background: #eef4ff; color: var(--main-color);
}

/* Objets de la case mystère : remise (adresse de livraison ou Discord Nitro) */
#advent .cl-item .cl-intro {
  margin: 8px 0 10px; color: #4a5568;
}

#advent .cl-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin-bottom: 10px;
}

#advent .cl-grid[hidden] {
  display: none;
}

#advent .cl-field {
  display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: #4a5568; margin: 0;
}

#advent .cl-field input,
#advent .cl-field select {
  border: 1px solid #cfd6e2; border-radius: .5rem; padding: 8px 10px; font: inherit; font-size: .95rem; color: var(--text-dark-color); background: #fff;
}

#advent .cl-field input:focus {
  outline: 2px solid var(--blue-theme-color); outline-offset: 0; border-color: transparent;
}

#advent .cl-field input:not(:placeholder-shown):invalid {
  border-color: var(--danger-color);
}

#advent .cl-check {
  display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; margin: 4px 0 8px; cursor: pointer;
}

#advent .cl-check input {
  margin-top: 4px;
}

@media (max-width: 640px) {
  #advent .cl-grid { grid-template-columns: 1fr; }
}

#advent .reel-card.t-item {
  background: linear-gradient(160deg, #f3e8ff, #d9c2ff); color: #3b1d6e;
}

#advent .reel-card.t-item i {
  color: #7b3fe4;
}

.adv-test .t-real { background: #1f2a1f; border: 1px solid #3c5a3c; border-radius: 8px; padding: 6px 8px; font-weight: 600; cursor: pointer; }
.adv-test .t-real.is-on { background: #3a1616; border-color: #a33; color: #ffb3b3; }
.adv-test .t-hint { margin: 4px 0 8px; color: #aaa; font-size: 12px; }

#advent .reel-legend {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; opacity: 0; transition: opacity .4s;
}

#advent .rw-reel.is-done .reel-legend {
  opacity: 1;
}

#advent .reel-legend .rl-title {
  font-size: .82rem; color: #6b7a90; margin-right: 2px;
}

#advent .reel-legend .rl-chip {
  display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 600; padding: 3px 9px; border-radius: 2rem;
  background: #f1f4f9; color: #4a5568; border: 1px solid #e2e7ef;
}

#advent .reel-legend .rl-chip.t-item {
  background: #f3e8ff; color: #3b1d6e; border-color: #dcc6ff;
}

#advent .reel-legend .rl-chip.is-win {
  background: #ffd43b; color: #3b2a00; border-color: #f5b400; box-shadow: 0 0 0 2px rgba(255,212,59,.4);
}

/* Roulette : suspense */
#advent .reel-card {
  transition: transform .18s ease-out, box-shadow .35s;
}

#advent .reel-card.is-under {
  transform: translateY(-4px); box-shadow: 0 .5rem 1rem rgba(0,0,0,.35);
}

#advent .reel-marker.tick {
  animation: reelTick .16s ease-out;
}

@keyframes reelTick { 40% { transform: scaleX(1.8); box-shadow: 0 0 16px rgba(255,212,59,1); } }

#advent .reel-window.is-tense {
  animation: reelTense 1s ease-in-out infinite;
}

@keyframes reelTense {
  0%, 100% { box-shadow: inset 0 0 0 2px rgba(255,212,59,.35), inset 0 .4rem 1rem rgba(0,0,0,.35), 0 0 0 0 rgba(255,212,59,0); }
  50% { box-shadow: inset 0 0 0 2px rgba(255,212,59,.9), inset 0 .4rem 1rem rgba(0,0,0,.35), 0 0 22px 2px rgba(255,212,59,.45); }
}

#advent #mReelTitle {
  display: inline-block; transition: transform .2s;
}


#advent .cl-zone {
  font-size: .8rem; color: #6b7a90; margin: -2px 0 8px;
}

/* Tirage final mis en avant */
.adv-final-hero {
  position: relative; display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 26px 24px 22px; border-radius: 1.25rem; text-decoration: none; color: #fff;
  background: rgba(255,255,255,.1); border: 2px solid rgba(255,255,255,.55);
  box-shadow: 0 1rem 2.4rem rgba(0,0,0,.25); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform .25s, box-shadow .25s;
}

.adv-final-hero:hover,
.adv-final-hero:focus-visible {
  color: #fff; text-decoration: none; transform: translateY(-3px); box-shadow: 0 1.2rem 2.8rem rgba(0,0,0,.3); border-color: rgba(255,255,255,.8);
}

.adv-final-hero .afh-icon {
  position: absolute; top: -22px; right: 20px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 1.45rem;
  background: var(--orange-color, #F56A25); color: #fff; box-shadow: 0 .4rem 1rem rgba(0,0,0,.25);
}

.adv-final-hero .afh-kicker {
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff;
}

.adv-final-hero .afh-prize {
  font-size: 1.45rem; font-weight: 700; line-height: 1.2;
}

.adv-final-hero .afh-value {
  align-self: flex-start; margin-top: 6px; padding: 3px 12px; border-radius: 2rem; background: var(--orange-color, #F56A25); color: #fff; font-weight: 700; font-size: .95rem;
}

.adv-final-hero .afh-how {
  margin-top: 8px; font-size: .9rem; font-weight: 300; opacity: .95;
}

#advent .adv-final {
  display: flex; align-items: center; gap: 22px; margin: 24px 0 0; padding: 24px 28px; border-radius: 1.25rem; scroll-margin-top: 140px;
  background: linear-gradient(120deg, #fff1e8, #fff 55%); border: 2px solid var(--orange-color, #F56A25); box-shadow: 0 .6rem 1.6rem rgba(var(--orange-color-rgb, 246, 122, 60),.15);
}

#advent .adv-final .af-icon {
  flex: none; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; background: var(--orange-color, #F56A25); color: #fff;
  box-shadow: 0 .4rem 1rem rgba(var(--orange-color-rgb, 246, 122, 60),.3);
}

#advent .adv-final .af-body {
  flex: 1; min-width: 0;
}

#advent .adv-final .af-kicker {
  margin: 0 0 2px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-dark-color, #cc622d);
}

#advent .adv-final h2 {
  margin: 0 0 8px; font-size: 1.5rem; font-weight: 700;
}

#advent .adv-final .af-value {
  display: inline-block; vertical-align: middle; margin-left: 6px; padding: 2px 12px; border-radius: 2rem; background: var(--orange-color, #F56A25); color: #fff; font-size: .95rem; font-weight: 700;
}

#advent .adv-final p {
  margin: 0; color: #4a5568;
}

#advent .adv-final .af-mine {
  flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 130px; padding: 12px 16px; border-radius: 1rem;
  background: #fff; border: 1px solid #ffc9ad; text-align: center;
}

#advent .adv-final .af-mine[hidden] {
  display: none;
}

#advent .adv-final .afm-n {
  font-size: 2.2rem; font-weight: 800; line-height: 1; color: var(--orange-color, #F56A25);
}

#advent .adv-final .afm-label {
  font-size: .85rem; color: #4a5568; margin-top: 4px;
}

@media (max-width: 767px) {
  #advent .adv-final { flex-direction: column; align-items: flex-start; text-align: left; }
  #advent .adv-final .af-mine { align-self: stretch; }
}

.adv-final-hero:hover span,
.adv-final-hero:focus-visible span {
  text-decoration: none;
}

/* Bouton Musique (icône SVG : le pack Font Awesome du site n'a pas d'icône de haut-parleur) */
#advent .gb-music[hidden] { display: none; }
#advent .gb-music .gm-icon { width: 18px; height: 18px; margin-right: 4px; vertical-align: -4px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#advent .gb-music .gm-speaker { fill: currentColor; stroke: none; }
#advent .gb-music .gm-mute { display: none; }
#advent .gb-music.is-off { opacity: .75; }
#advent .gb-music.is-off .gm-waves { display: none; }
#advent .gb-music.is-off .gm-mute { display: inline; }
