.persona-games {
  --pg-pink: #f472b6;
  --pg-blue: #0ea5e9;
  position: relative;
  overflow: hidden;
  padding: 108px 0 118px;
  background:
    radial-gradient(65% 85% at 100% 0%, color-mix(in srgb, var(--pg-pink) 78%, white) 0%, transparent 68%),
    radial-gradient(45% 70% at 0% 100%, rgba(125, 211, 252, .52), transparent 70%),
    linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 44%, #bae6fd 100%);
  color: #0f172a;
  isolation: isolate;
}

.persona-games::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .22;
  pointer-events: none;
  background-image: radial-gradient(rgba(15, 23, 42, .24) .7px, transparent .7px);
  background-size: 7px 7px;
  mix-blend-mode: multiply;
}

.pg-head {
  width: min(1120px, calc(100% - 40px));
  position: relative;
  z-index: 3;
  margin: 0 auto 56px;
  text-align: center;
}

.pg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #0369a1;
  filter: drop-shadow(0 3px 8px rgba(3, 105, 161, .18));
}

.pg-title {
  max-width: 980px;
  margin: 0 auto 22px;
  font-family: var(--display, "Bricolage Grotesque", sans-serif);
  font-size: clamp(44px, 7vw, 90px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.055em;
  color: #0f172a;
}

.pg-title span {
  background: linear-gradient(100deg, #7c3aed, #db2777 48%, #0284c7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pg-copy {
  max-width: 660px;
  margin: 0 auto;
  color: #334155;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.7;
}

.pg-float {
  position: absolute;
  z-index: 1;
  font-size: clamp(32px, 4vw, 58px);
  pointer-events: none;
  filter: drop-shadow(0 12px 15px rgba(15, 23, 42, .18));
  animation: pg-drift 7s ease-in-out infinite;
}

.pg-float.pg-f1 { top: 17%; left: 7%; transform: rotate(-14deg); }
.pg-float.pg-f2 { top: 22%; right: 8%; animation-delay: -2.2s; }
.pg-float.pg-f3 { top: 53%; left: 48%; animation-delay: -4s; font-size: 34px; }

@keyframes pg-drift {
  0%, 100% { translate: 0 0; rotate: -3deg; }
  50% { translate: 0 -18px; rotate: 5deg; }
}

.pg-sticker {
  position: absolute;
  z-index: 2;
  width: clamp(100px, 11vw, 168px);
  pointer-events: none;
  filter: drop-shadow(0 18px 26px rgba(22, 8, 46, .3));
}

.pg-sticker img {
  display: block;
  width: 100%;
  height: auto;
  border: 3px solid rgba(232, 213, 255, .9);
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(124, 58, 237, .25), 0 16px 38px rgba(0, 0, 0, .22);
  object-fit: cover;
}

.pg-sticker.pg-dice { top: 28px; left: clamp(8px, 3.8vw, 70px); transform: rotate(-9deg); }
.pg-sticker.pg-dice img { aspect-ratio: 4 / 3; animation: pg-sticker 4.2s ease-in-out infinite; }
.pg-sticker.pg-extra { top: 305px; right: clamp(-18px, 1vw, 22px); transform: rotate(6deg); }
.pg-sticker.pg-extra img { aspect-ratio: 6 / 5; }

@keyframes pg-sticker {
  0%, 100% { transform: translateY(0) rotate(0); }
  48% { transform: translateY(-8px) rotate(3deg); }
  58% { transform: translateY(-8px) rotate(-2deg); }
}

.pg-marquee {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 22px;
  overflow: hidden;
  padding: 8px 0 18px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}

.pg-track { display: flex; width: max-content; will-change: transform; }
.pg-track:hover { animation-play-state: paused; }
.pg-track.pg-left { animation: pg-left 34s linear infinite; }
.pg-track.pg-right { animation: pg-right 39s linear infinite; }
.pg-group { display: flex; gap: 18px; padding-right: 18px; }

@keyframes pg-left { to { transform: translateX(-50%); } }
@keyframes pg-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.pg-card {
  min-width: 250px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 22px 12px 12px;
  border: 1px solid rgba(15, 23, 42, .06);
  border-radius: 20px;
  background: rgba(255, 255, 255, .68);
  box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
  backdrop-filter: blur(10px);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.pg-card:hover {
  transform: translateY(-3px) rotate(-.5deg);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 14px 30px rgba(15, 23, 42, .12);
}

.pg-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 27px;
  box-shadow: inset 0 1px rgba(255,255,255,.35);
}

.pg-info { display: grid; gap: 4px; text-align: left; }
.pg-info h4 { margin: 0; color: #0f172a; font-size: 15px; font-weight: 800; }
.pg-tag { color: #7c3aed; font-size: 11px; font-weight: 800; }

@media (max-width: 760px) {
  .persona-games { padding: 84px 0 92px; }
  .pg-head { width: min(100% - 28px, 680px); margin-bottom: 42px; }
  .pg-eyebrow { font-size: 14px; letter-spacing: 1.5px; }
  .pg-title { font-size: clamp(40px, 12vw, 62px); }
  .pg-copy { font-size: 15px; }
  .pg-sticker { width: 82px; opacity: .76; }
  .pg-sticker.pg-dice { top: 12px; left: -4px; }
  .pg-sticker.pg-extra { top: auto; bottom: 180px; right: -20px; }
  .pg-float { display: none; }
  .pg-card { min-width: 218px; }
}

@media (prefers-reduced-motion: reduce) {
  .pg-track, .pg-sticker img, .pg-float { animation: none !important; }
}
