/* ========================
   PLAYGROUND VIEWPORT
   ======================== */
.pg-viewport {
  position: fixed;
  top: 50px;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  background-color: #ffffff;
  background-image: radial-gradient(circle, rgba(0,0,0,0.10) 1px, transparent 1px);
  background-size: 28px 28px;
}

.pg-viewport::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(249,248,243,0.75) 100%);
  z-index: 50;
}

.pg-canvas {
  position: absolute;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
}

/* ========================
   DRAG HINT
   ======================== */
.pg-hint {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Söhne', 'Inter', sans-serif;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(0,0,0,0.28);
  pointer-events: none;
  z-index: 200;
  transition: opacity 1.2s ease;
  white-space: nowrap;
  background: rgba(249,248,243,0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 7px 16px;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.07);
}

.pg-hint.hidden { opacity: 0; }

/* ========================
   MOBILE — max-width 768px
   ======================== */
@media (max-width: 768px) {
  .pg-hint {
    font-size: 8px;
    padding: 6px 12px;
    bottom: 20px;
  }
}

/* ========================
   DARK MODE
   ======================== */
[data-theme="dark"] .pg-viewport {
  background-color: #0B0D12;
  background-image: radial-gradient(circle, rgba(255, 244, 220, 0.07) 1px, transparent 1px);
}

[data-theme="dark"] .pg-viewport::after {
  background: radial-gradient(ellipse at center, transparent 35%, rgba(11, 13, 18, 0.82) 100%);
}

[data-theme="dark"] .pg-hint {
  color: rgba(255, 244, 220, 0.3);
  background: rgba(11, 13, 18, 0.75);
  border-color: rgba(255, 244, 220, 0.08);
}

/* ========================
   ITEMS
   ======================== */
.pg-item {
  position: absolute;
}

.pg-title {
  font-family: 'Söhne', 'Inter', sans-serif;
  font-size: 11px;
  color: #0B0D12;
  font-weight: 400;
  margin-top: 9px;
  line-height: 1.4;
}

.pg-desc {
  font-family: 'Söhne', 'Inter', sans-serif;
  font-size: 11px;
  color: #6B7280;
  line-height: 1.55;
  margin-top: 2px;
}

/* ========================
   VISUAL TYPES
   ======================== */

/* Pop-up poster */
.pg-poster {
  background: #111;
  width: 175px;
  height: 200px;
  padding: 20px 18px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.poster-sup {
  font-family: 'Söhne', 'Inter', sans-serif;
  font-size: 8px;
  color: #6B7280;
  letter-spacing: 0.04em;
}

.poster-headline {
  font-family: 'Inter', sans-serif;
  font-size: 38px;
  font-weight: 900;
  color: #fff;
  line-height: 0.85;
  letter-spacing: -0.02em;
}

/* Zine */
.pg-zine {
  background: #c01830;
  width: 135px;
  height: 275px;
  padding: 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.zine-text {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  line-height: 0.95;
  text-transform: uppercase;
}

/* 2x2 paper grid */
.pg-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  width: 225px;
  height: 225px;
}

/* Illustration — red/social media */
.pg-illus-red {
  background: #cc2c18;
  width: 200px;
  height: 235px;
  position: relative;
  overflow: hidden;
}

.illus-figure-blue {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 140px;
  background: #3050cc;
  border-radius: 28px 28px 4px 4px;
}

/* Playlist 3x3 */
.pg-playlist {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  width: 310px;
  height: 310px;
}

.pl-cell {
  overflow: hidden;
}

/* Note app */
.pg-note-app {
  background: linear-gradient(155deg, #1e2858, #3040a0);
  width: 260px;
  height: 190px;
  padding: 14px;
  box-sizing: border-box;
}

.app-top {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
}

.app-row {
  height: 20px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  margin-bottom: 5px;
}

.app-row.tall { height: 32px; }
.app-row.short { width: 60%; }

/* Character exploration */
.pg-character {
  background: #8ed836;
  width: 185px;
  height: 250px;
  position: relative;
  overflow: hidden;
}

.char-head {
  position: absolute;
  top: 38px;
  left: 50%;
  transform: translateX(-50%);
  width: 54px;
  height: 52px;
  background: #1a24cc;
  border: 3px solid #0a0a0a;
  border-radius: 6px;
}

.char-eye {
  position: absolute;
  top: 12px;
  width: 12px;
  height: 14px;
  background: #fff;
  border: 2px solid #000;
}

.char-eye.left { left: 8px; }
.char-eye.right { right: 8px; }

.char-body {
  position: absolute;
  top: 94px;
  left: 50%;
  transform: translateX(-50%);
  width: 46px;
  height: 58px;
  background: #1a24cc;
  border: 3px solid #0a0a0a;
  border-radius: 4px;
}

.char-leg {
  position: absolute;
  top: 156px;
  width: 18px;
  height: 44px;
  background: #0a0a18;
  border: 2px solid #0a0a0a;
}

.char-leg.left { left: calc(50% - 24px); }
.char-leg.right { left: calc(50% + 6px); }

/* Generative pattern */
.pg-generative {
  background: #111;
  width: 250px;
  height: 270px;
  position: relative;
  overflow: hidden;
}

.gen-shape {
  position: absolute;
}

.gen-dot {
  background: #e04820;
  border-radius: 50%;
}

.gen-sq {
  background: #fff;
}

.gen-sq-o {
  background: transparent;
  border: 1.5px solid #fff;
}

.gen-tri {
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 24px solid #e04820;
}

.gen-circ-o {
  background: transparent;
  border: 1.5px solid #fff;
  border-radius: 50%;
}

/* Clock */
.pg-clock {
  background: #080808;
  width: 250px;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clock-ring {
  width: 214px;
  height: 214px;
  border-radius: 50%;
  background: conic-gradient(
    #f07820 0deg,
    #e03810 45deg,
    #a02058 100deg,
    #2030b0 160deg,
    #0828a0 200deg,
    #4068c0 250deg,
    #80a0d8 300deg,
    #e8b048 340deg,
    #f07820 360deg
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.clock-inner {
  width: 194px;
  height: 194px;
  border-radius: 50%;
  background: #080808;
  position: relative;
}

.clock-h {
  position: absolute;
  width: 2px;
  height: 62px;
  background: #fff;
  border-radius: 1px;
  bottom: 50%;
  left: calc(50% - 1px);
  transform-origin: bottom center;
  transform: rotate(30deg);
}

.clock-m {
  position: absolute;
  width: 1.5px;
  height: 82px;
  background: rgba(255,255,255,0.7);
  border-radius: 1px;
  bottom: 50%;
  left: calc(50% - 0.75px);
  transform-origin: bottom center;
  transform: rotate(150deg);
}

/* Halloween poster */
.pg-halloween {
  background: #0a0808;
  width: 225px;
  height: 245px;
  padding: 22px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hw-sup {
  font-family: 'Söhne', 'Inter', sans-serif;
  font-size: 8px;
  color: #444;
}

.hw-title {
  font-family: 'Inter', sans-serif;
  font-size: 40px;
  font-weight: 900;
  color: #fff;
  line-height: 0.82;
  letter-spacing: -0.02em;
}

.hw-date {
  font-family: 'Söhne', 'Inter', sans-serif;
  font-size: 9px;
  color: #e04820;
}

/* Burnout illustration */
.pg-burnout {
  background: linear-gradient(180deg,
    #3050a0 0%, #5878c0 30%,
    #e8d040 55%, #f0e870 80%, #f8f090 100%
  );
  width: 265px;
  height: 330px;
  position: relative;
  overflow: hidden;
}

.burnout-fig {
  position: absolute;
  bottom: 27%;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 56px;
  background: #2030a0;
  border-radius: 10px 10px 4px 4px;
}

/* Illus dark/crossing */
.pg-illus-dark {
  background: linear-gradient(160deg, #1a0835, #3a1055, #2820a0);
  width: 185px;
  height: 210px;
  position: relative;
  overflow: hidden;
}

/* Blue abstract (top right) */
.pg-blue-abstract {
  background: linear-gradient(135deg, #101828, #203050, #4868a0);
  width: 175px;
  height: 215px;
  position: relative;
  overflow: hidden;
}

.ba-stroke {
  position: absolute;
  height: 7px;
  border-radius: 4px;
  background: rgba(110, 170, 230, 0.55);
}
