/* Roue du destin (page /roue-du-destin) : couleurs et polices du thème Antropiik Destin (bronze, or, turquoise). */
/* Le menu a un lien de plus : il reste sur une ligne sur grand écran. */
@media (min-width: 1101px) { .nav { flex-wrap: nowrap; gap: 2px; } .nav a { padding: 8px 9px; letter-spacing: .05em; white-space: nowrap; } }
.wheel-intro { text-align: center; max-width: 760px; margin: 0 auto 22px; }
.wheel-intro .section-title { justify-content: center; font-size: 34px; margin-bottom: 12px; }
.wheel-intro .section-title::after { display: none; }
.wheel-intro .lead { color: var(--ink); opacity: .9; }
.wheel-universes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 auto 22px; }
.wheel-universes button {
  display: grid; gap: 2px; min-width: 190px; padding: 12px 18px; text-align: left; cursor: pointer;
  color: var(--ink); background: var(--panel); border: 1px solid var(--panel-edge); border-radius: 14px;
  font: inherit; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.wheel-universes button span { font-family: var(--title); font-size: 1.05rem; color: var(--gold); }
.wheel-universes button small { color: var(--muted); font-size: .8rem; }
.wheel-universes button:hover { transform: translateY(-1px); border-color: var(--bronze); }
.wheel-universes button.active { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--turq-soft), 0 0 22px rgba(84, 203, 212, .25); }

.wheel-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr); gap: 22px; align-items: start; }
@media (max-width: 960px) { .wheel-layout { grid-template-columns: 1fr; } }

.wheel-stage { display: flex; flex-direction: column; align-items: center; padding: 26px 18px; position: relative; overflow: hidden; }
.wheel-stage::before {
  content: ""; position: absolute; width: 70%; aspect-ratio: 1; top: 6%; left: 15%; border-radius: 50%;
  background: radial-gradient(circle, rgba(84, 203, 212, .22), rgba(185, 138, 70, .10) 55%, transparent 70%); filter: blur(30px); pointer-events: none;
}
.wheel-wrap { position: relative; width: min(560px, 100%); aspect-ratio: 1; display: grid; place-items: center; }
#wheel-canvas { width: 100%; height: 100%; border-radius: 50%; filter: drop-shadow(0 22px 28px rgba(0, 0, 0, .8)) drop-shadow(0 0 22px rgba(84, 203, 212, .28)); will-change: transform; }
.wheel-pointer { position: absolute; z-index: 6; top: -4px; left: 50%; width: 54px; height: 80px; transform: translateX(-50%); filter: drop-shadow(0 8px 7px rgba(0, 0, 0, .85)); pointer-events: none; }
.wheel-pointer::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #6e3e12 0%, #e3a33a 22%, #fff0a2 47%, #c57c1d 70%, #5b300e 100%);
  clip-path: polygon(50% 100%, 22% 38%, 2% 23%, 28% 18%, 50% 0, 72% 18%, 98% 23%, 78% 38%);
}
.wheel-pointer::after {
  content: ""; position: absolute; top: 16px; left: 20px; width: 14px; height: 14px; transform: rotate(45deg);
  background: linear-gradient(135deg, #c9ffff, #54cbd4 55%, #146b74); border: 2px solid #43250d; box-shadow: 0 0 9px var(--cyan);
}
.wheel-hub {
  position: absolute; z-index: 5; width: 36%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: url("/assets/roue/roue-fantasy-antropiik.webp") center / 278% auto no-repeat;
  box-shadow: 0 0 0 2px var(--bronze), 0 0 28px rgba(0, 0, 0, .7);
}

.wheel-controls { position: relative; z-index: 2; width: min(540px, 100%); margin-top: 22px; display: grid; gap: 12px; text-align: center; }
.wheel-tickets, .wheel-discount {
  display: flex; align-items: center; gap: 14px; text-align: left; padding: 12px 16px;
  background: rgba(2, 7, 15, .55); border: 1px solid var(--panel-edge); border-radius: 14px;
}
.wheel-token {
  flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  font-family: var(--title); font-size: 1.4rem; color: #2b1a07; background: var(--gold-grad); box-shadow: 0 0 0 2px #6b4a1f, 0 0 16px rgba(230, 199, 122, .35);
}
.wheel-tickets strong { font-family: var(--title); font-size: 1.9rem; color: var(--gold); line-height: 1; }
.wheel-tickets .count { display: grid; }
.wheel-tickets small, .wheel-discount small { color: var(--muted); font-size: .82rem; }
.wheel-tickets .next { margin-left: auto; color: var(--muted); font-size: .82rem; text-align: right; }
.wheel-discount .sym { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; font-weight: 700; color: var(--cyan); border: 1px solid var(--turq-soft); }
.wheel-discount strong { display: block; color: var(--ink); }
.wheel-discount[data-state="active"] { border-color: var(--cyan); box-shadow: 0 0 18px rgba(84, 203, 212, .2); }
.wheel-discount[data-state="active"] .sym { color: #04121a; background: var(--cyan); }
.wheel-discount[data-state="cooldown"] .sym { color: var(--muted); border-color: rgba(255, 255, 255, .15); }
#wheel-message { min-height: 1.4em; margin: 2px 0; color: var(--gold); }
#wheel-message.error { color: #ff8a7a; }
.wheel-spin {
  justify-self: center; display: grid; gap: 2px; min-width: 280px; padding: 14px 30px; cursor: pointer; border: 0; border-radius: 999px;
  font-family: var(--title); font-size: 1.25rem; letter-spacing: .06em; color: #2b1a07; background: var(--gold-grad);
  box-shadow: 0 0 0 2px #6b4a1f, 0 10px 28px rgba(0, 0, 0, .55), 0 0 24px rgba(230, 199, 122, .3); transition: transform .15s, filter .15s;
}
.wheel-spin small { font-family: var(--ui); font-size: .78rem; letter-spacing: 0; opacity: .8; }
.wheel-spin:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.08); }
.wheel-spin:disabled { cursor: not-allowed; filter: grayscale(.6) brightness(.7); }

.wheel-side { padding: 22px; }
.wheel-side h2, .wheel-history h2 { margin: 0 0 4px; }
.wheel-brand {
  margin: 0 0 2px; font-family: var(--title); font-size: 1.35rem; letter-spacing: .12em; text-transform: uppercase;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.wheel-side h2 { font-family: var(--title); font-weight: 400; letter-spacing: .05em; }
.wheel-sound {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 auto 14px; padding: 6px 14px; cursor: pointer; border-radius: 999px;
  color: var(--ink); background: rgba(2, 7, 15, .7); border: 1px solid var(--panel-edge); font: .85rem var(--ui); transition: border-color .2s, box-shadow .2s;
}
.wheel-sound b { color: var(--gold); font-size: 1rem; }
.wheel-sound:hover { border-color: var(--bronze); box-shadow: 0 0 14px rgba(185, 138, 70, .25); }
.wheel-sound[aria-pressed="false"] { color: var(--muted); }
.wheel-sound[aria-pressed="false"] b { color: var(--muted); text-decoration: line-through; }
.wheel-prizes { display: grid; gap: 8px; margin-top: 14px; }
.wheel-prize { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(2, 7, 15, .45); border: 1px solid rgba(185, 138, 70, .22); }
.wheel-prize .ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--gold); border: 1px solid rgba(185, 138, 70, .45); font-weight: 700; }
.wheel-prize strong { display: block; color: var(--ink); }
.wheel-prize small { color: var(--muted); font-size: .8rem; }
.wheel-prize .chance { font-family: var(--title); color: var(--cyan); white-space: nowrap; }
.wheel-prize.rare { border-color: rgba(230, 199, 122, .6); }
.wheel-prize.blocked { opacity: .5; }
.wheel-prize.blocked .chance { color: var(--muted); font-family: var(--ui); font-size: .85rem; }
.wheel-rules { margin: 14px 0 0; padding-left: 18px; color: var(--muted); font-size: .88rem; }
.wheel-rules li { margin: 4px 0; }

.wheel-history { margin-top: 22px; padding: 22px; }
.wheel-tickets[hidden], .wheel-discount[hidden], .wheel-history[hidden], #wheel-message[hidden], .wheel-side[hidden] { display: none; }
/* Visitor without account: the wheel alone, centred. */
.wheel-layout.guest { grid-template-columns: minmax(0, 720px); justify-content: center; }
.wheel-history-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-top: 12px; }
.wheel-history-list .entry { padding: 10px 12px; border-radius: 12px; background: rgba(2, 7, 15, .45); border: 1px solid rgba(185, 138, 70, .22); }
.wheel-history-list .entry strong { display: block; color: var(--gold); }
.wheel-history-list .entry.lost strong { color: var(--muted); }
.wheel-history-list .entry small { color: var(--muted); font-size: .8rem; }

.wheel-login { text-align: center; padding: 14px 18px; }
.wheel-login p { margin: 0 0 10px; }
.wheel-login-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

dialog.wheel-result {
  color: var(--ink); max-width: 440px; width: calc(100% - 32px); text-align: center; padding: 30px 26px 24px; margin: auto;
  background: linear-gradient(180deg, rgba(14, 22, 34, .98), rgba(3, 9, 18, .98)); border: 1px solid rgba(185, 138, 70, .7); border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .7), 0 0 30px rgba(185, 138, 70, .18);
}
.wheel-result p, .wheel-result h2 { text-align: center; }
.wheel-result .eyebrow { margin: 0 0 4px; }
#wheel-result-title { font-family: var(--title); font-weight: 400; font-size: 1.7rem; color: var(--gold); }
#wheel-result-text { max-width: 34ch; margin: 0 auto 12px; color: var(--ink); line-height: 1.5; }
#wheel-result-universe { display: inline-block; }
dialog.wheel-result::backdrop { background: rgba(2, 7, 15, .75); backdrop-filter: blur(3px); }
.wheel-result .big-ico {
  width: 86px; height: 86px; margin: 6px auto 12px; display: grid; place-items: center; border-radius: 50%;
  font-size: 2.2rem; font-weight: 700; color: #2b1a07; background: var(--gold-grad); box-shadow: 0 0 0 3px #6b4a1f, 0 0 34px rgba(230, 199, 122, .45);
}
.wheel-result[data-result="lost"] .big-ico { background: #2a2f38; color: var(--muted); box-shadow: 0 0 0 3px #3d4350; }
.wheel-result h2 { margin: 0 0 8px; }
.wheel-result .actions { display: flex; justify-content: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

/* Accueil : 4 cartes sous « Nos univers » (Boutique, Roue du destin, Launcher, Compte). */
@media (min-width: 1101px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 901px) and (max-width: 1100px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.tile-art-wheel {
  display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(ellipse 70% 90% at 50% 50%, rgba(84, 203, 212, .22), rgba(185, 138, 70, .12) 45%, rgba(3, 9, 18, .95) 75%), #050b14;
}
.tile-art-wheel img { position: absolute; top: 5%; bottom: 5%; left: 0; right: 0; margin: auto; height: 90%; width: auto; aspect-ratio: 1; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .8)) drop-shadow(0 0 16px rgba(84, 203, 212, .35)); transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.tile:hover .tile-art-wheel img { transform: rotate(150deg); }
@media (prefers-reduced-motion: reduce) { .tile:hover .tile-art-wheel img { transform: none; } }

/* Boutique : les deux badges d'une carte (jeu, catégorie) ne se chevauchent plus : jeu en haut à gauche, catégorie en bas à droite. */
.shop-art .tag { max-width: calc(100% - 20px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; z-index: 2; }
.shop-art .tag.right { top: auto; bottom: 10px; }
/* Cartes ATP : le montant est en bas, et « Antropiik » répète « Antropiik Token » : un seul badge, en haut à droite. */
.shop-art.atp-art .tag:not(.right) { display: none; }
.shop-art.atp-art .tag.right { top: 10px; bottom: auto; }

/* Cloche : compteur rouge et notifications du compte */
#bell-btn { position: relative; }
.bell-count {
  position: absolute; top: -3px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  display: grid; place-items: center; font: 700 11px/1 Georgia, serif; color: #fff; background: #d8433a; box-shadow: 0 0 0 2px #050b14, 0 0 10px rgba(216, 67, 58, .6);
}
.bell-count[hidden] { display: none; }
/* La cloche s'agite quand une notification arrive. */
#bell-btn.ringing svg { transform-origin: 50% 12%; animation: bell-ring 1.2s ease-in-out; }
@keyframes bell-ring {
  0%, 100% { transform: rotate(0); } 10% { transform: rotate(18deg); } 20% { transform: rotate(-16deg); } 30% { transform: rotate(13deg); }
  40% { transform: rotate(-10deg); } 50% { transform: rotate(7deg); } 60% { transform: rotate(-5deg); } 70% { transform: rotate(3deg); } 80% { transform: rotate(-1deg); }
}
@media (prefers-reduced-motion: reduce) { #bell-btn.ringing svg { animation: none; } }
.notice-list { list-style: none; margin: 0 0 6px; padding: 0; }
.notice-list li a { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--ink); white-space: normal; }
.notice-list li a:hover, .notice-list li a:focus { background: rgba(185, 138, 70, .14); }
.notice-list img { width: 34px; height: 34px; flex: none; border-radius: 50%; }
.notice-list b { display: block; color: var(--gold); font-weight: 400; font-family: var(--title); letter-spacing: .03em; }
.notice-list li.unread b::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--cyan); vertical-align: middle; }
.notice-list .small { display: block; font-size: .82rem; line-height: 1.35; }

.shop-discount-banner {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; padding: 7px 16px 7px 8px; border-radius: 999px;
  color: var(--ink); background: linear-gradient(180deg, rgba(20, 16, 10, .92), rgba(6, 10, 18, .92));
  border: 1px solid var(--bronze); box-shadow: inset 0 0 0 1px rgba(230, 199, 122, .15), 0 0 16px rgba(185, 138, 70, .25);
  font-family: var(--ui); font-size: .92rem;
}
.shop-discount-banner::before {
  content: "%"; flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%;
  font: 700 13px Georgia, serif; color: #2b1a07; background: var(--gold-grad); box-shadow: 0 0 0 1px #6b4a1f;
}
.shop-discount-banner b { font-family: var(--title); font-weight: 400; color: var(--gold); letter-spacing: .04em; }
.price s { display: block; color: var(--muted); font-weight: 400; font-size: .72em; line-height: 1.1; white-space: nowrap; }

@media (max-width: 560px) {
  .wheel-universes button { min-width: 0; flex: 1 1 100%; }
  .wheel-spin { min-width: 0; width: 100%; }
  .wheel-tickets { flex-wrap: wrap; }
  .wheel-tickets .next { margin-left: 0; text-align: left; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { #wheel-canvas { transition: none !important; } }
