/* ============================================================
   CoinsBase — style10 : décors saisonniers, boutique de récompenses,
   modération, reconnexion automatique, liaison de compte (hub)
   ============================================================ */

/* ---------- Décors saisonniers ---------- */
.ev-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 60; }
.ev-garland { position: fixed; top: calc(var(--top) - 6px); left: 0; right: 0; height: 12px; z-index: 61; pointer-events: none; display: flex; justify-content: space-around; padding: 0 10px;
  background: radial-gradient(60% 8px at 50% 0, transparent 98%, transparent) ; }
.ev-garland::before { content: ''; position: absolute; left: 0; right: 0; top: 2px; height: 1px; background: color-mix(in srgb, var(--text) 18%, transparent); }
.ev-garland i { position: relative; width: 6px; height: 9px; border-radius: 50% 50% 45% 45%; background: var(--c); margin-top: 2px;
  box-shadow: 0 0 8px var(--c), 0 0 2px var(--c); animation: evBlink 1.8s ease-in-out infinite; animation-delay: var(--d); }
.ev-garland i:nth-child(odd) { margin-top: 5px; }
@keyframes evBlink { 50% { opacity: .35; box-shadow: none; } }
@media (max-width: 980px) { .ev-garland { top: calc(var(--top) - 5px); } .ev-garland i:nth-child(n+21) { display: none; } }

.ev-mascot { position: fixed; right: 18px; bottom: 18px; z-index: 62; width: 92px; height: 115px; padding: 0; border: 0; background: none; cursor: pointer;
  filter: drop-shadow(0 12px 22px #000a); animation: evBob 3.2s ease-in-out infinite; transition: transform .35s, opacity .35s; }
.ev-mascot svg { width: 100%; height: 100%; display: block; }
.ev-mascot.bye { opacity: 0; transform: translateY(30px) scale(.8); animation: none; }
.ev-bubble { position: absolute; right: 70%; top: -6px; white-space: nowrap; background: #fff; color: #17130a; font-weight: 800; font-size: 12px; padding: 6px 10px; border-radius: 12px 12px 2px 12px; box-shadow: 0 8px 20px #0006;
  opacity: 0; transform: translateY(6px); transition: .25s; pointer-events: none; }
.ev-mascot:hover .ev-bubble { opacity: 1; transform: none; }
@keyframes evBob { 50% { transform: translateY(-6px) rotate(-2deg); } }
@media (max-width: 980px) { .ev-mascot { width: 62px; height: 78px; right: 10px; bottom: calc(76px + env(safe-area-inset-bottom)); } body.in-game .ev-mascot { display: none; } }
@media (min-width: 1280px) { .ev-mascot { right: 24px; } }
html.reduce .ev-mascot, html.reduce .ev-garland i { animation: none; }

/* Noël : neige sur les bords, rouge et vert discrets */
html.ev-noel .feature::before { content: ''; position: absolute; left: -2px; right: -2px; top: -2px; height: 18px; z-index: 4; pointer-events: none;
  background: radial-gradient(14px 10px at 14px 0, #fff 98%, transparent) 0 0 / 28px 12px repeat-x, linear-gradient(#fff, #fff) 0 0 / 100% 4px no-repeat; filter: drop-shadow(0 2px 3px #0004); opacity: .95; }
html.ev-noel .ft-kicker::after { content: ' · Joyeux Noël 🎄'; color: #ff6b6b; }
html.ev-noel .brand-logo { position: relative; }
html.ev-noel .rail .brand-logo::after, html.ev-noel .a2-brand .brand-logo::after { content: ''; position: absolute; width: 26px; height: 22px; left: 50%; top: -10px; transform: translateX(-10%) rotate(18deg);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 34'%3E%3Cpath d='M4 28Q12 2 32 6l4 10q-12-6-20 14z' fill='%23d23b45'/%3E%3Crect x='1' y='25' width='24' height='8' rx='4' fill='%23fff'/%3E%3Ccircle cx='35' cy='16' r='4.5' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat; }
html.ev-noel .hs-bonus .hs-ico { background: color-mix(in srgb, #d23b45 20%, transparent) !important; color: #ff8a8a !important; border-color: #d23b4555; }

/* Nouvel An : reflets dorés */
html.ev-nouvelan .ft-kicker::after { content: ' · Bonne année ✨'; color: var(--gold1); }
html.ev-nouvelan .feature { box-shadow: 0 30px 80px #0008, 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent), 0 0 60px color-mix(in srgb, var(--accent) 12%, transparent) !important; }

/* Pâques : pastels */
html.ev-paques .ft-kicker::after { content: ' · Joyeuses Pâques 🐣'; color: #ffc2d6; }
html.ev-paques body::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; background: radial-gradient(800px 400px at 0% 0%, #ffc2d610, transparent 70%), radial-gradient(800px 400px at 100% 100%, #9ad8b310, transparent 70%); }

/* Été : soleil chaud en haut à droite */
html.ev-ete .ft-kicker::after { content: ' · Bel été ☀️'; color: #ffd27a; }
html.ev-ete body::after { content: ''; position: fixed; right: -200px; top: -220px; width: 620px; height: 620px; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, #ffcf6b22 0%, #ff9f4314 35%, transparent 70%); }

/* ---------- Reconnexion automatique ---------- */
.reconnect { position: fixed; left: 50%; top: calc(var(--top) + 12px); transform: translateX(-50%); z-index: 400; display: flex; align-items: center; gap: 10px;
  background: var(--panel2); border: 1px solid var(--hair, var(--line2)); color: var(--text); padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 13px; box-shadow: 0 16px 40px #000a; }
.reconnect i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--accent) 30%, transparent); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Liaison de compte dans le hub ---------- */
.link-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.link-card { width: min(440px, 100%); background: var(--panel); border: 1px solid var(--line2); border-radius: 22px; padding: 28px; box-shadow: 0 30px 80px #000a; }
.link-card h2 { font-family: var(--display); letter-spacing: -.03em; margin: 12px 0 6px; font-size: 22px; }
.link-card .opt { display: block; width: 100%; text-align: left; padding: 16px; border-radius: 16px; border: 1px solid var(--line2); background: var(--line); margin-top: 10px; cursor: pointer; color: var(--text); }
.link-card .opt:hover { border-color: var(--hair, var(--accent)); }
.link-card .opt b { display: block; font-size: 15px; margin-bottom: 3px; }
.link-card .opt small { color: var(--muted); }
.link-card form { display: grid; gap: 12px; margin-top: 14px; }

/* ---------- Boutique : récompenses ---------- */
.rw-tabs { display: flex; gap: 6px; margin: 4px 0 18px; }
.rw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.rw-card { position: relative; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); transition: transform .2s, border-color .2s; }
.rw-card:hover { transform: translateY(-3px); border-color: var(--hair, var(--line2)); }
.rw-art { height: 120px; display: grid; place-items: center; position: relative; background: radial-gradient(120% 120% at 30% 0%, color-mix(in srgb, var(--rc) 70%, #fff) 0%, var(--rc) 40%, color-mix(in srgb, var(--rc) 45%, #000) 100%); }
.rw-art::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(120deg, #ffffff10 0 2px, transparent 2px 18px); }
.rw-art svg { width: 54px; height: 54px; color: #fff; filter: drop-shadow(0 6px 14px #0006); position: relative; z-index: 1; }
.rw-art .rw-cat { position: absolute; left: 12px; top: 10px; z-index: 1; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fffd; background: #0003; padding: 4px 8px; border-radius: 999px; }
.rw-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.rw-body b { font-size: 15px; }
.rw-body p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; flex: 1; }
.rw-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.rw-price { display: flex; align-items: center; gap: 6px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rw-price .coin-ico { width: 16px; height: 16px; color: var(--accent); }
.rw-stock { font-size: 11px; color: var(--muted); }
.rw-stock.out { color: var(--lose); }
.rw-claims { display: grid; gap: 8px; }
.rw-claim { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--line); }
.rw-claim .st { margin-left: auto; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.st.pending { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.st.delivered { background: color-mix(in srgb, var(--win) 16%, transparent); color: var(--win); }
.st.refused { background: color-mix(in srgb, var(--lose) 16%, transparent); color: var(--lose); }
.rw-note { font-size: 12px; color: var(--muted); margin-top: 3px; word-break: break-word; }
.rw-warn { padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 10%, transparent); border: 1px solid var(--hair, var(--line2)); margin-bottom: 16px; font-size: 13.5px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
@media (max-width: 640px) { .rw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .rw-art { height: 92px; } .rw-art svg { width: 40px; height: 40px; } .rw-body { padding: 12px; } .rw-body p { display: none; } .rw-foot { flex-direction: column; align-items: stretch; } }

/* ---------- Admin : modération ---------- */
.mod-msg { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 10px 12px; border-radius: 12px; background: var(--line); }
.mod-msg.flag { background: color-mix(in srgb, var(--lose) 10%, transparent); border: 1px solid color-mix(in srgb, var(--lose) 25%, transparent); }
.mod-msg .who { font-size: 12px; color: var(--muted); white-space: nowrap; }
.mod-msg .who b { color: var(--text); }
.mod-msg .txt { font-size: 13.5px; word-break: break-word; }
.mod-msg .orig { font-size: 12px; color: var(--lose); margin-top: 3px; }
.mod-list { display: grid; gap: 6px; max-height: 60vh; overflow-y: auto; }
.claim-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--line); align-items: center; }
.claim-row small { color: var(--muted); }
.title > svg { width: 30px; height: 30px; flex: none; vertical-align: -4px; }
.rw-warn > svg { width: 30px; height: 30px; flex: none; color: #8b9bff; }
