/* ============================================================
   Playmania Arcade — Player Verdict + Comments social section
   Light page theme (#FFF6EC) with a dark neon arcade verdict card.
   Font: 'Plus Jakarta Sans' (referenced, not imported).
   ============================================================ */

.pm-gamesocial {
  max-width: 760px;
  margin: 42px auto 0;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: #4B5563;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  box-sizing: border-box;
}
.pm-gamesocial *,
.pm-gamesocial *::before,
.pm-gamesocial *::after { box-sizing: border-box; }

/* ----------------------------------------------------------------
   VERDICT — dark neon arcade hero card
   ---------------------------------------------------------------- */
.pm-verdict {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 30px;
  background: linear-gradient(150deg, #161031, #241a44 60%, #2c1d52);
  box-shadow:
    0 24px 60px -24px rgba(28, 14, 66, .65),
    0 4px 18px -6px rgba(124, 58, 237, .35),
    inset 0 1px 0 rgba(255, 255, 255, .06);
  isolation: isolate;
}

/* soft neon glow bleeding behind the buttons */
.pm-verdict-glow {
  position: absolute;
  top: 38%;
  left: 50%;
  width: 520px;
  height: 320px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
  opacity: .8;
  background:
    radial-gradient(closest-side, rgba(249, 115, 22, .55), transparent 70%) -90px 0/60% 100% no-repeat,
    radial-gradient(closest-side, rgba(168, 85, 247, .55), transparent 70%) 120px 10px/60% 100% no-repeat,
    radial-gradient(closest-side, rgba(74, 222, 128, .30), transparent 70%) 0 60px/70% 80% no-repeat;
}

.pm-verdict-q {
  position: relative;
  z-index: 1;
  margin: 0 0 22px;
  text-align: center;
  color: #fff;
  font-weight: 800;
  font-size: clamp(20px, 4.5vw, 24px);
  line-height: 1.28;
  letter-spacing: -.01em;
}
.pm-verdict-q span {
  background: linear-gradient(92deg, #fb923c, #facc15 45%, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #fb923c; /* fallback */
  filter: drop-shadow(0 0 14px rgba(249, 115, 22, .45));
}

.pm-verdict-btns {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: stretch;
}

.pm-vbtn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 64px;
  padding: 12px 22px;
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  text-align: left;
  color: #fff;
  transition: all .18s cubic-bezier(.34, 1.56, .64, 1);
  overflow: hidden;
}
.pm-vbtn:focus-visible {
  outline: 3px solid rgba(255, 255, 255, .85);
  outline-offset: 3px;
}
.pm-vemoji {
  font-size: 30px;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .3));
}
.pm-vtxt {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.pm-vtxt b {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  line-height: 1.15;
}
.pm-vtxt small {
  font-size: 11.5px;
  font-weight: 500;
  opacity: .82;
  letter-spacing: .01em;
}

/* shine sweep on hover */
.pm-vbtn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-18deg);
  transition: left .55s ease;
  pointer-events: none;
}
.pm-vbtn:hover::before { left: 130%; }

/* ---- YES: the star ---- */
.pm-vbtn.pm-yes {
  flex: 1.12;
  background: linear-gradient(135deg, #16a34a, #4ade80 55%, #a3e635);
  box-shadow:
    0 14px 32px -10px rgba(34, 197, 94, .75),
    0 0 0 1px rgba(255, 255, 255, .14) inset,
    0 0 26px -2px rgba(74, 222, 128, .55);
  animation: pmPulse 2.6s ease-in-out infinite;
}
.pm-vbtn.pm-yes:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 22px 44px -10px rgba(34, 197, 94, .9),
    0 0 0 1px rgba(255, 255, 255, .2) inset,
    0 0 40px 2px rgba(74, 222, 128, .7);
  animation-play-state: paused;
}
.pm-vbtn.pm-yes:active {
  transform: translateY(1px) scale(.98);
  animation-play-state: paused;
}

/* ---- NO: clearly secondary ---- */
.pm-vbtn.pm-no {
  flex: 1;
  background: #2a2342;
  color: #f7c4c4;
  border: 1px solid rgba(248, 113, 113, .42);
  box-shadow:
    0 8px 22px -12px rgba(0, 0, 0, .6),
    0 0 0 1px rgba(255, 255, 255, .03) inset;
}
.pm-vbtn.pm-no .pm-vtxt small { color: rgba(247, 196, 196, .7); }
.pm-vbtn.pm-no:hover {
  transform: translateY(-2px);
  border-color: rgba(248, 113, 113, .7);
  box-shadow:
    0 14px 28px -12px rgba(0, 0, 0, .65),
    0 0 22px -4px rgba(239, 68, 68, .45);
}
.pm-vbtn.pm-no:active { transform: translateY(1px) scale(.985); }

/* ---- voted / locked states ---- */
.pm-vbtn.voted {
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, .9),
    0 0 0 6px rgba(74, 222, 128, .35),
    0 14px 34px -10px rgba(34, 197, 94, .7),
    0 0 34px 2px rgba(74, 222, 128, .55);
  animation: none;
}
.pm-vbtn.pm-no.voted {
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, .85),
    0 0 0 6px rgba(248, 113, 113, .4),
    0 0 26px -2px rgba(239, 68, 68, .5);
}
.pm-vbtn.dimmed {
  opacity: .55;
  filter: saturate(.7);
  transform: scale(.97);
  animation: none;
}
.pm-vbtn.dimmed:hover { transform: scale(.97); }

/* ---- result bar (post-vote) ---- */
.pm-verdict-result {
  position: relative;
  z-index: 1;
  margin-top: 24px;
}
.pm-verdict-result[hidden] { display: none; }

.pm-vbar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .4);
  overflow: hidden;
}
.pm-vbar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #16a34a, #4ade80 40%, #facc15 70%, #f97316);
  box-shadow: 0 0 16px rgba(74, 222, 128, .6), 0 0 8px rgba(249, 115, 22, .4);
  transition: width .8s cubic-bezier(.22, 1, .36, 1);
}
.pm-vstat {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, .82);
}
.pm-vpct {
  font-size: 20px;
  font-weight: 800;
  color: #6ee7a8;
  text-shadow: 0 0 12px rgba(74, 222, 128, .5);
}

/* ----------------------------------------------------------------
   COMMENTS — light card
   ---------------------------------------------------------------- */
.pm-comments {
  background: #fff;
  border: 1px solid #F1E8DC;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 14px 40px -22px rgba(26, 26, 26, .25);
}

.pm-cm-head { margin-bottom: 16px; }
.pm-cm-head h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: #1A1A1A;
  letter-spacing: -.01em;
}
.pm-cm-count {
  font-size: 13px;
  font-weight: 800;
  color: #EA580C;
  background: rgba(249, 115, 22, .12);
  border-radius: 999px;
  padding: 2px 10px;
  line-height: 1.6;
}

/* ---- form ---- */
.pm-cm-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pm-cm-name {
  max-width: 280px;
}
.pm-cm-name,
.pm-cm-body {
  width: 100%;
  background: #fff;
  border: 1px solid #E7D9C6;
  border-radius: 12px;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 14.5px;
  color: #1A1A1A;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.pm-cm-name::placeholder,
.pm-cm-body::placeholder { color: #9CA3AF; }
.pm-cm-name:focus,
.pm-cm-body:focus {
  outline: 0;
  border-color: #F97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, .14);
}
.pm-cm-body {
  min-height: 84px;
  resize: vertical;
  line-height: 1.5;
}

/* honeypot — visually hidden but present */
.pm-cm-hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  overflow: hidden;
  pointer-events: none;
}

.pm-cm-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.pm-cm-hint {
  font-size: 12px;
  color: #9CA3AF;
}
.pm-cm-submit {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #F97316, #EA580C);
  box-shadow: 0 10px 22px -8px rgba(234, 88, 12, .65);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.pm-cm-submit:hover {
  transform: translateY(-2px);
  filter: brightness(1.07);
  box-shadow: 0 16px 30px -8px rgba(234, 88, 12, .8);
}
.pm-cm-submit:active { transform: translateY(0) scale(.98); }
.pm-cm-submit:focus-visible {
  outline: 3px solid rgba(249, 115, 22, .45);
  outline-offset: 2px;
}
.pm-cm-submit:disabled {
  opacity: .55;
  cursor: not-allowed;
  filter: saturate(.7);
  box-shadow: none;
  transform: none;
}

/* ---- form result message ---- */
.pm-cm-msg {
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  padding: 9px 12px;
  margin-top: 10px;
}
.pm-cm-msg[hidden] { display: none; }
.pm-cm-msg.ok {
  color: #15803d;
  background: rgba(34, 197, 94, .12);
  border: 1px solid rgba(34, 197, 94, .3);
}
.pm-cm-msg.err {
  color: #b91c1c;
  background: rgba(239, 68, 68, .1);
  border: 1px solid rgba(239, 68, 68, .3);
}

/* ---- comment list ---- */
.pm-cm-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
  border-top: 1px solid #F1E8DC;
  padding-top: 18px;
}

.pm-cm {
  display: flex;
  gap: 12px;
}
.pm-cm-av {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(135deg, #F97316, #a855f7);
  box-shadow: 0 6px 14px -6px rgba(168, 85, 247, .55);
  text-transform: uppercase;
}
.pm-cm-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.pm-cm-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.pm-cm-author {
  font-size: 14px;
  font-weight: 800;
  color: #1A1A1A;
}
.pm-cm-time {
  font-size: 12px;
  color: #9CA3AF;
}
.pm-cm-text {
  font-size: 14.5px;
  color: #4B5563;
  line-height: 1.55;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.pm-cm-like {
  align-self: flex-start;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: #6B7280;
  background: transparent;
  border: 1px solid #E7D9C6;
  border-radius: 999px;
  padding: 4px 10px;
  transition: all .15s ease;
}
.pm-cm-like:hover {
  transform: translateY(-1px);
  color: #EA580C;
  border-color: rgba(249, 115, 22, .55);
  background: rgba(249, 115, 22, .06);
}
.pm-cm-like:active { transform: translateY(0) scale(.96); }
.pm-cm-like.liked {
  color: #EA580C;
  border-color: rgba(249, 115, 22, .55);
  background: rgba(249, 115, 22, .14);
}

.pm-cm-empty {
  text-align: center;
  color: #9CA3AF;
  font-style: italic;
  font-size: 14px;
  padding: 24px;
}

/* newly inserted comment entrance */
.pm-cm.pm-new {
  animation: pmCmIn .45s cubic-bezier(.22, 1, .36, 1) both;
}

/* ----------------------------------------------------------------
   Keyframes
   ---------------------------------------------------------------- */
@keyframes pmCmIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pmPulse {
  0%, 100% {
    box-shadow:
      0 14px 32px -10px rgba(34, 197, 94, .75),
      0 0 0 1px rgba(255, 255, 255, .14) inset,
      0 0 22px -2px rgba(74, 222, 128, .45);
  }
  50% {
    box-shadow:
      0 14px 32px -10px rgba(34, 197, 94, .85),
      0 0 0 1px rgba(255, 255, 255, .18) inset,
      0 0 38px 2px rgba(74, 222, 128, .75);
  }
}

/* ----------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------- */
@media (max-width: 560px) {
  .pm-gamesocial { padding: 0 16px; margin-top: 30px; }
  .pm-verdict { padding: 24px 18px; border-radius: 18px; }
  .pm-verdict-q { font-size: 20px; margin-bottom: 18px; }

  .pm-verdict-btns { flex-direction: column; gap: 12px; }
  .pm-vbtn {
    width: 100%;
    flex: none;
    min-height: 56px;
    justify-content: flex-start;
  }
  .pm-vbtn.pm-yes { transform: none; }
  .pm-vbtn.pm-yes:hover { transform: translateY(-2px) scale(1.01); }
  .pm-vbtn.dimmed { transform: none; }

  .pm-comments { padding: 18px; border-radius: 16px; }
  .pm-cm-name { max-width: none; }
  .pm-cm-actions { gap: 10px; }
  .pm-cm-submit { flex: 1; min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .pm-gamesocial *,
  .pm-gamesocial *::before,
  .pm-gamesocial *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
