/* Rulezz Share UX v1.0.0 – game.php : design seul, aucun moteur de partage modifié.
   Style scindé de app.css pour maintenir « une fonction = un module ».
   Les actions restent gérées par assets/js/game-share.js. */
body.rz-public .rz-share.rz-share--ux {
  box-sizing: border-box;
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 30px;
  padding: clamp(17px, 2.1vw, 28px);
  border: 1px solid #e1e5f0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(27, 28, 60, .055);
  color: #11162a;
}
.rz-share.rz-share--ux .rz-share-head { margin-bottom: 22px; }
.rz-share.rz-share--ux .rz-share-eyebrow {
  color: #626b83;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .15em;
  font-weight: 900;
}
.rz-share.rz-share--ux .rz-share-head h2 {
  margin: 5px 0 8px;
  color: #10152a;
  font-size: clamp(19px, 2.3vw, 24px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -.035em;
}
.rz-share.rz-share--ux .rz-share-head p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #69738b;
}
.rz-share.rz-share--ux .rz-share-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(8px, 1.1vw, 13px);
}
.rz-share.rz-share--ux .rz-share-item {
  --share-color: #64748b;
  --share-soft: #f6f8fb;
  --share-edge: #e2e7f0;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  min-width: 0;
  min-height: 118px;
  padding: 16px 8px 14px;
  overflow: hidden;
  gap: 11px;
  border: 1px solid var(--share-edge);
  border-radius: 20px;
  background: linear-gradient(145deg, #fff 0%, var(--share-soft) 100%);
  color: #13192b;
  text-align: center;
  text-decoration: none;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.rz-share.rz-share--ux .rz-share-item.whatsapp { --share-color: #06c972; --share-soft: #eafbf3; --share-edge: #d7f6e7; }
.rz-share.rz-share--ux .rz-share-item.facebook { --share-color: #1877f2; --share-soft: #edf4ff; --share-edge: #d9e8ff; }
.rz-share.rz-share--ux .rz-share-item.x { --share-color: #101216; --share-soft: #f2f3f7; --share-edge: #e4e6eb; }
.rz-share.rz-share--ux .rz-share-item.messenger { --share-color: #6b52f5; --share-soft: #f2eeff; --share-edge: #e6ddff; }
.rz-share.rz-share--ux .rz-share-item.mail { --share-color: #f5a000; --share-soft: #fff6e9; --share-edge: #ffead0; }
.rz-share.rz-share--ux .rz-share-item.copy { --share-color: #e92282; --share-soft: #ffedf6; --share-edge: #ffd8e9; }
.rz-share.rz-share--ux .rz-share-icon {
  position: relative;
  z-index: 1;
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 54px;
  height: 54px;
  padding: 12px;
  border: 0;
  border-radius: 50%;
  background: var(--share-color);
  color: #fff;
  box-shadow: 0 0 0 12px color-mix(in srgb, var(--share-color) 9%, transparent),
              0 8px 15px color-mix(in srgb, var(--share-color) 18%, transparent);
}
/* Reprend la main sur les anciens styles de marque présents dans app.css. */
.rz-share.rz-share--ux .rz-share-item.whatsapp .rz-share-icon,
.rz-share.rz-share--ux .rz-share-item.facebook .rz-share-icon,
.rz-share.rz-share--ux .rz-share-item.x .rz-share-icon,
.rz-share.rz-share--ux .rz-share-item.messenger .rz-share-icon,
.rz-share.rz-share--ux .rz-share-item.mail .rz-share-icon,
.rz-share.rz-share--ux .rz-share-item.copy .rz-share-icon {
  background: var(--share-color);
  border: 0;
  color: #fff;
}
.rz-share.rz-share--ux .rz-share-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  overflow: visible;
}
.rz-share.rz-share--ux .rz-share-icon::after {
  content: '✦';
  position: absolute;
  top: -13px;
  right: -17px;
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
  color: var(--share-color);
}
.rz-share.rz-share--ux .rz-share-label {
  position: relative;
  z-index: 2;
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  color: #12182c;
}
.rz-share.rz-share--ux .rz-share-suit {
  position: absolute;
  z-index: 0;
  right: 8px;
  bottom: -10px;
  color: var(--share-color);
  opacity: .19;
  font-size: 36px;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}
@media (hover:hover) and (pointer:fine) {
  .rz-share.rz-share--ux .rz-share-item:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--share-color) 32%, #fff);
    box-shadow: 0 12px 22px color-mix(in srgb, var(--share-color) 12%, transparent);
  }
}
.rz-share.rz-share--ux .rz-share-item:active { transform: translateY(0) scale(.98); }
.rz-share.rz-share--ux .rz-share-item:focus-visible {
  outline: 3px solid #5d44f2;
  outline-offset: 3px;
}
.rz-share.rz-share--ux .rz-share-feedback {
  min-height: 17px;
  margin-top: 9px;
  font-size: 12px;
  font-weight: 700;
  color: #58627a;
}
.rz-share.rz-share--ux .rz-share-feedback.is-error { color: #b42318; }
@media (max-width: 780px) {
  .rz-share.rz-share--ux .rz-share-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .rz-share.rz-share--ux .rz-share-item { min-height: 106px; }
}
@media (max-width: 460px) {
  body.rz-public .rz-share.rz-share--ux {
    width: calc(100% - 24px);
    padding: 15px;
    margin: 16px auto 22px;
    border-radius: 20px;
  }
  .rz-share.rz-share--ux .rz-share-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .rz-share.rz-share--ux .rz-share-item { min-height: 100px; padding: 13px 6px; }
  .rz-share.rz-share--ux .rz-share-icon { width: 48px; height: 48px; flex-basis: 48px; padding: 11px; }
  .rz-share.rz-share--ux .rz-share-head { margin-bottom: 17px; }
}
@media (prefers-reduced-motion:reduce) {
  .rz-share.rz-share--ux .rz-share-item { transition: none; }
  .rz-share.rz-share--ux .rz-share-item:hover { transform: none; }
}
@media (forced-colors:active) {
  .rz-share.rz-share--ux .rz-share-item { border-color: ButtonText; background: ButtonFace; color: ButtonText; }
  .rz-share.rz-share--ux .rz-share-icon { background: Highlight !important; color: HighlightText !important; box-shadow: none; }
  .rz-share.rz-share--ux .rz-share-suit { display: none; }
}
