/* Player looks: picture frames, name colours, effects and fonts, and the
   Premium badge (looks.js builds the elements). The website keeps an exact
   copy (website/public/looks.css); change both. Every colour is chosen to
   read well on the dark night-sky background the pages use. */

.look-player { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.look-avatar { display: inline-flex; flex: none; line-height: 0; border: 3px solid #000; background: #000; }
.look-avatar svg { display: block; image-rendering: pixelated; }
.look-name { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.look-name-text { overflow-wrap: anywhere; }

/* ---- frames */
.fr-wood { border-color: #6b3f1f; box-shadow: 0 0 0 2px #2a1608; }
.fr-stone { border-color: #8a8a98; box-shadow: 0 0 0 2px #2a2a32; }
.fr-gold { border-color: #ffcc33; box-shadow: 0 0 0 2px #7a5a00, 0 0 10px rgba(255, 204, 51, .55); }
.fr-purple { border-color: #a46bff; box-shadow: 0 0 0 2px #3a1a7a, 0 0 10px rgba(164, 107, 255, .55); }
.fr-diamond { border-color: #9ff6ff; box-shadow: 0 0 0 2px #1a6a8a, 0 0 12px rgba(159, 246, 255, .6); }
.fr-rainbow { border: 3px solid transparent; background: linear-gradient(#000, #000) padding-box, linear-gradient(90deg, #ff4a4a, #ffcc33, #5cd65c, #4aa8e8, #b36cff, #ff4a4a) border-box; background-size: 100% 100%, 300% 100%; animation: look-slide 4s linear infinite; }

/* ---- name colours */
.nc-white { color: #f0f0e8; }
.nc-grass { color: #8fd65a; }
.nc-sky { color: #7cc8ff; }
.nc-rose { color: #ff9ab8; }
.nc-gold { color: #ffcc33; }
.nc-purple { color: #c49bff; }
/* Gradient names: the colour is the fallback where clipping isn't supported. */
.nc-royal, .nc-fire, .nc-ice, .nc-rainbow { -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nc-royal { color: #ffcc33; background-image: linear-gradient(90deg, #ffd84a, #d08cff); }
.nc-fire { color: #ff9a3a; background-image: linear-gradient(90deg, #ffe14a, #ff5a2a); }
.nc-ice { color: #bff4ff; background-image: linear-gradient(90deg, #ffffff, #6fdcff); }
.nc-rainbow { color: #ffcc33; background-image: linear-gradient(90deg, #ff6a6a, #ffcc33, #7ae07a, #6fc0ff, #c49bff, #ff6a6a); background-size: 300% 100%; animation: look-slide 5s linear infinite; }

/* ---- name effects */
.ne-shadow { text-shadow: 2px 2px 0 #000; }
.ne-glow { filter: drop-shadow(0 0 4px rgba(255, 220, 120, .85)); }
.ne-outline { -webkit-text-stroke: 1px #000; paint-order: stroke fill; filter: drop-shadow(1px 1px 0 #000) drop-shadow(-1px -1px 0 #000); }
/* A sheen that sweeps across the name every few seconds. */
.ne-shine { position: relative; }
.ne-shine::after { content: attr(data-text); position: absolute; inset: 0; color: transparent; -webkit-text-fill-color: transparent; background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, .9) 50%, transparent 65%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; animation: look-shine 3s ease-in-out infinite; pointer-events: none; }

/* ---- name fonts */
.nf-pixel { font-family: "Press Start 2P", ui-monospace, monospace; font-size: .8em; line-height: 1.6; }
.nf-plain { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 700; }
.nf-fancy { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 700; }
.nf-chunky { font-family: Impact, "Arial Black", system-ui, sans-serif; letter-spacing: .5px; }
.nf-mono { font-family: "Courier New", ui-monospace, monospace; font-weight: 700; }

/* ---- the Premium badge */
.premium-badge {
  display: inline-block; flex: none;
  font-family: "Press Start 2P", ui-monospace, monospace; font-size: 8px; line-height: 1; letter-spacing: .5px;
  padding: 5px 6px 4px; color: #1b0d33; -webkit-text-fill-color: #1b0d33; text-shadow: none; filter: none;
  background: linear-gradient(90deg, #ffd84a, #ffb02e 45%, #c38bff); border: 2px solid #000; box-shadow: 2px 2px 0 #000;
  background-size: 200% 100%; animation: look-slide 6s ease-in-out infinite alternate;
  white-space: nowrap; vertical-align: middle;
}

@keyframes look-slide { from { background-position: 0% 0; } to { background-position: 100% 0; } }
@keyframes look-shine { 0%, 60% { background-position: 150% 0; } 100% { background-position: -50% 0; } }

/* No moving looks for people who ask their device for less motion. */
@media (prefers-reduced-motion: reduce) {
  .fr-rainbow, .nc-rainbow, .premium-badge, .ne-shine::after { animation: none; }
}
