/* Point-and-click games (/games/point-and-click and /games/point-and-click/{game}). Builds on play.css and arcade.css. */
.pnc-hero { background: radial-gradient(800px 280px at 90% -30%, rgba(224, 68, 106, .35), transparent 60%), radial-gradient(700px 300px at -10% 120%, rgba(112, 72, 232, .45), transparent 60%), #0b1533; }
.pnc-hero--game .pl-hero-ico { background: color-mix(in srgb, var(--ar-accent, #6ff0bc) 26%, transparent); color: #fff; }
.pnc-hero .pl-crumbs { margin-bottom: 12px; }
.pnc-cards .ar-card-art { background: radial-gradient(160px 90px at 30% 20%, rgba(255, 255, 255, .25), transparent 70%), linear-gradient(135deg, var(--ar-accent), #0b1533); }

.pnc-game { --pl-ink: #0b1533; --pl-ink2: #13224a; --pl-blue: #1463ff; --pl-mint: #6ff0bc; --pl-green: #0e9f6e; --pl-amber: #c77a00; --pl-violet: #7048e8; --pl-red: #d92d20; --pl-line: #dbe2ee; --pl-soft: #f3f6fb; --pl-muted: #5d6880; }
.pnc-game { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; margin-bottom: 22px; }
.pnc-main { position: relative; min-width: 0; display: grid; gap: 10px; padding: 14px; border-radius: 22px; color: #fff; background: #0b1533;
  background-image: radial-gradient(600px 240px at 50% -10%, color-mix(in srgb, var(--ar-accent, #1463ff) 40%, transparent), transparent 70%); }
.pnc-main:fullscreen { align-content: center; border-radius: 0; overflow: auto; }
.pnc-main:fullscreen .pnc-stage { max-width: min(100%, calc((100vh - 230px) * 16 / 9)); margin: 0 auto; }
.pnc-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.pnc-room { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; font-size: 15px; }
.pnc-room b { font-family: var(--display); font-size: 18px; }
.pnc-holding { padding: 3px 10px; border-radius: 99px; background: var(--ar-accent, #1463ff); color: #fff; font-size: 12.5px; font-weight: 700; }
.pnc-tools { display: flex; gap: 6px; }
.pnc-tb { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .07); color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.pnc-tb:hover { background: rgba(255, 255, 255, .14); }
.pnc-tb[data-act="hint"] { background: #ffd76a; border-color: #ffd76a; color: #0b1533; }

.pnc-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #13224a; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 18px 40px rgba(0, 0, 0, .45); user-select: none; -webkit-user-select: none; }
.pnc-scene, .pnc-scene svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pnc-scene.is-in { animation: pnc-fade .35s ease both; }
@keyframes pnc-fade { from { opacity: 0; transform: scale(1.015); } to { opacity: 1; transform: none; } }
.pnc-g { transition: filter .15s ease; }
.pnc-g.is-hot { filter: brightness(1.12) drop-shadow(0 0 3px #fff) drop-shadow(0 0 9px var(--ar-accent, #6ff0bc)); }
.pnc-spots { position: absolute; inset: 0; }
.pnc-spot { position: absolute; padding: 0; border: 2px solid transparent; border-radius: 12px; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pnc-spot:hover, .pnc-spot:focus-visible { border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .06); outline: none; }
.pnc-spot:focus-visible { border-color: #fff; box-shadow: 0 0 0 3px var(--ar-accent, #6ff0bc); }
.pnc-spots.is-using .pnc-spot { cursor: crosshair; }
.pnc-tip { position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%); padding: 4px 9px; border-radius: 8px; background: rgba(11, 21, 51, .92); color: #fff; font-size: 12.5px; font-weight: 700; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s; z-index: 2; }
.pnc-spot[style*="top:0%"] .pnc-tip, .pnc-spot[style*="top:1%"] .pnc-tip, .pnc-spot[style*="top:2%"] .pnc-tip, .pnc-spot[style*="top:3%"] .pnc-tip, .pnc-spot[style*="top:4%"] .pnc-tip, .pnc-spot[style*="top:5%"] .pnc-tip { bottom: auto; top: calc(100% + 4px); }
.pnc-spot:hover .pnc-tip, .pnc-spot:focus-visible .pnc-tip { opacity: 1; }
.pnc-spot--exit:hover, .pnc-spot--exit:focus-visible { border-style: dashed; }
@media (hover: hover) { .pnc-stage:hover .pnc-spot { border-color: rgba(255, 255, 255, .1); } .pnc-stage:hover .pnc-spot:hover { border-color: rgba(255, 255, 255, .6); } }

.pnc-say { min-height: 50px; margin: 0; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); font-size: 15px; line-height: 1.5; color: #f1f5ff; }
.pnc-bag { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.pnc-bag-l { flex: none; display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.pnc-inv { flex: 1; min-width: 0; display: flex; gap: 6px; margin: 0; padding: 2px; list-style: none; overflow-x: auto; scrollbar-width: thin; }
.pnc-empty { padding: 10px 4px; font-size: 13px; color: rgba(255, 255, 255, .6); }
.pnc-item { display: grid; justify-items: center; gap: 2px; width: 82px; min-height: 72px; padding: 6px 4px; border-radius: 12px; border: 2px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .92); color: #0b1533; font: inherit; font-size: 11.5px; font-weight: 700; line-height: 1.15; text-align: center; cursor: pointer; }
.pnc-item:hover { border-color: var(--ar-accent, #6ff0bc); }
.pnc-item[aria-pressed="true"] { border-color: #ffd76a; box-shadow: 0 0 0 3px rgba(255, 215, 106, .55); transform: translateY(-2px); background: #fffaf0; }
.pnc-item.is-new { animation: pnc-pop .5s ease both; }
@keyframes pnc-pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.1); } 100% { transform: none; opacity: 1; } }
.pnc-rooms { display: flex; flex-wrap: wrap; gap: 6px; }
.pnc-rooms:empty { display: none; }
.pnc-rooms button { min-height: 36px; padding: 6px 12px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.pnc-rooms button:hover:not([disabled]) { background: rgba(255, 255, 255, .1); }
.pnc-rooms button[aria-current] { background: #fff; color: #0b1533; cursor: default; }

.pnc-ov { display: none; }
.pnc-ov.is-on { position: fixed; inset: 0; z-index: 60; display: flex; padding: 16px; overflow: auto; background: rgba(11, 21, 51, .6); backdrop-filter: blur(2px); }
.pnc-ov noscript { display: block; }
.pnc-card { position: relative; flex: none; margin: auto; width: min(100%, 520px); padding: 22px; border-radius: 20px; background: #fff; color: #172033; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); animation: pnc-in .2s ease both; overflow: hidden; }
@keyframes pnc-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.pnc-card h2 { margin: 0 0 8px; font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.1; color: var(--pl-ink, #0b1533); }
.pnc-card h2:focus { outline: none; }
.pnc-card p { margin: 0 0 10px; font-size: 15px; line-height: 1.55; }
.pnc-card .pl-eyebrow { color: var(--ar-accent, #1463ff); }
.pnc-dlg-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.pnc-dlg-head b { font-family: var(--display); font-size: 18px; }
.pnc-dlg-text { padding: 12px 14px; border-radius: 14px; background: #f3f6fb; border: 1px solid #dbe2ee; }
.pnc-dlg-text p:last-child { margin-bottom: 0; }
.pnc-dlg-text q, .pnc-quote { display: block; margin: 6px 0; padding: 8px 12px; border-left: 4px solid var(--ar-accent, #1463ff); background: #fff; border-radius: 6px; font-size: 14px; quotes: none; }
.pnc-choices { display: grid; gap: 8px; margin-top: 14px; }
.pnc-choices .pl-btn { justify-content: flex-start; width: 100%; }
.pnc-end { width: min(100%, 580px); text-align: left; }
.pnc-stars { display: flex; gap: 4px; margin: 4px 0 6px; }
.pnc-stars svg { fill: #dbe2ee; }
.pnc-stars svg.on { fill: #ffc94d; filter: drop-shadow(0 2px 4px rgba(199, 122, 0, .35)); }
.pnc-end-sub { color: #5d6880; font-size: 13.5px !important; }
.pnc-facts { margin: 12px 0 6px; display: grid; gap: 6px; }
.pnc-facts div { padding: 8px 12px; border-radius: 10px; background: #f3f6fb; border: 1px solid #dbe2ee; }
.pnc-facts dt { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #5d6880; }
.pnc-facts dd { margin: 2px 0 0; font-size: 14.5px; font-weight: 600; color: #0b1533; }
.pnc-src { font-size: 12.5px !important; color: #5d6880; }
.pnc-confetti { position: absolute; inset: 0 0 auto; height: 0; pointer-events: none; }
.pnc-confetti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; background: var(--ar-accent, #1463ff); animation: pnc-fall 1.8s ease-in forwards; opacity: .9; }
.pnc-confetti i:nth-child(3n) { background: #ffc94d; } .pnc-confetti i:nth-child(3n+1) { background: #0e9f6e; }
.pnc-confetti i:nth-child(1) { left: 4%; } .pnc-confetti i:nth-child(2) { left: 10%; animation-delay: .2s; } .pnc-confetti i:nth-child(3) { left: 16%; animation-delay: .1s; }
.pnc-confetti i:nth-child(4) { left: 23%; animation-delay: .35s; } .pnc-confetti i:nth-child(5) { left: 30%; } .pnc-confetti i:nth-child(6) { left: 37%; animation-delay: .25s; }
.pnc-confetti i:nth-child(7) { left: 44%; animation-delay: .05s; } .pnc-confetti i:nth-child(8) { left: 51%; animation-delay: .4s; } .pnc-confetti i:nth-child(9) { left: 58%; animation-delay: .15s; }
.pnc-confetti i:nth-child(10) { left: 65%; animation-delay: .3s; } .pnc-confetti i:nth-child(11) { left: 72%; } .pnc-confetti i:nth-child(12) { left: 79%; animation-delay: .2s; }
.pnc-confetti i:nth-child(13) { left: 86%; animation-delay: .1s; } .pnc-confetti i:nth-child(14) { left: 92%; animation-delay: .35s; } .pnc-confetti i:nth-child(15) { left: 97%; animation-delay: .05s; }
.pnc-confetti i:nth-child(16) { left: 34%; animation-delay: .5s; } .pnc-confetti i:nth-child(17) { left: 68%; animation-delay: .55s; }
@keyframes pnc-fall { to { transform: translateY(560px) rotate(540deg); opacity: 0; } }

.pnc-side { display: grid; gap: 14px; }
.pnc-goals { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.pnc-goals li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; color: #3a465c; }
.pnc-goals li > span[aria-hidden] { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; border: 2px solid #dbe2ee; font-size: 13px; font-weight: 800; color: #fff; }
.pnc-goals li.is-done { color: #075e43; }
.pnc-goals li.is-done > span[aria-hidden] { background: #0e9f6e; border-color: #0e9f6e; }
.pnc-how { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13.5px; line-height: 1.45; color: #3a465c; }

/* Touch: nothing glows without a hover, so mark each hotspot, and keep tap targets at 44px on small scenes. */
@media (hover: none) {
  .pnc-spot::before { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ar-accent, #1463ff) 70%, transparent), 0 1px 4px rgba(0, 0, 0, .4); opacity: .85; pointer-events: none; }
}
@media (max-width: 760px) {
  .pnc-spot::after { content: ''; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%); }
}

@media (max-width: 980px) {
  .pnc-game { grid-template-columns: minmax(0, 1fr); }
  .pnc-side { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 560px) {
  .pnc-main { padding: 10px 8px 12px; border-radius: 16px; }
  .pnc-tb { padding: 8px 10px; font-size: 13px; }
  .pnc-tb[data-act="full"] span, .pnc-tb[data-act="restart"] span { display: none; }
  .pnc-tip { display: none; }
  .pnc-item { width: 70px; min-height: 64px; font-size: 11px; }
  .pnc-item svg { width: 32px; height: 32px; }
  .pnc-card { padding: 16px; }
  .pnc-card h2 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .pnc-scene.is-in, .pnc-card, .pnc-item.is-new { animation: none; }
  .pnc-g { transition: none; }
}
