/* Thème Noël low-poly, partagé par l'écran et les téléphones */
:root { --bg:#0a2416; --fg:#fff8ec; --mut:#c3d8ca; --red:#d42a3c; --gold:#f5c542; }
* { box-sizing:border-box }
body { margin:0; min-height:100vh; font-family:Nunito,system-ui,sans-serif; color:var(--fg); background:#0d1a33; overflow-x:hidden;
       text-shadow:0 2px 6px #000c }  /* lisible par-dessus le décor */
.panel, button, .chip, input { text-shadow:none }
#lowpoly { position:fixed; inset:0; width:100%; height:100%; z-index:-1 }
#lowpoly .tw { animation:tw 2.5s ease-in-out infinite alternate }
@keyframes tw { to { opacity:.15 } }
.title { font-family:'Lilita One',system-ui,sans-serif; letter-spacing:.02em; font-weight:400 }
.facet-red { background:linear-gradient(100deg,#d42a3c 0 28%,#c42536 28% 52%,#b81e2f 52% 77%,#a51a2a 77%);
             border-bottom:6px solid var(--gold) }
.mut { color:var(--mut) }

/* facettes : un dégradé à arêtes franches posé sur la couleur du joueur */
.chip { display:inline-block; padding:8px 24px; font-weight:900; color:#111;
        clip-path:polygon(10px 0,100% 0,calc(100% - 10px) 100%,0 100%);
        background-image:linear-gradient(160deg,#fff6 0 42%,#0000 42% 70%,#0002 70%) }
.gem { clip-path:polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%);
       background-image:linear-gradient(135deg,#fff9 0 28%,#fff3 28% 50%,#0000 50% 72%,#0005 72%) }
.panel { color:#1c2a22; background:linear-gradient(160deg,#fff 0 40%,#f1f4f6 40% 75%,#e1e8ed 75%);
         clip-path:polygon(0 7%,100% 0,98.5% 100%,1% 93%) }

button { font:inherit; font-weight:900; border:0; cursor:pointer; color:#3a1d00; padding:14px 34px;
         background:linear-gradient(160deg,#ffe08a 0 45%,#f5c542 45% 75%,#d9a32a 75%);
         clip-path:polygon(12px 0,100% 0,calc(100% - 12px) 100%,0 100%) }
button:hover, button:focus-visible { outline:none; background:linear-gradient(160deg,#fff 0 45%,#ffe08a 45% 75%,#f5c542 75%) }
button:disabled { filter:grayscale(1) opacity(.5); cursor:default }

.flake { position:fixed; top:-20px; width:10px; height:10px; background:#fff; pointer-events:none; z-index:0;
         clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%); animation:fall linear infinite; will-change:transform }
@keyframes fall { to { transform:translate(40px,110vh) rotate(360deg) } }
@media (prefers-reduced-motion:reduce) { .flake { display:none } #lowpoly .tw { animation:none } }
