/* 퐁퐁 큐브 — 매끈하고 둥근 밝은 테마 (포탈 8-bit 다크 테마의 --fc-* 색은 쓰지 않는다. 포탈 공용 요소는 맨 아래 블록) */
:root {
  --pp-ink: #2a2540;
  --pp-sub: #7a6f8f;
  --pp-paper: #fffaf3;
  --pp-bg: #fff4e3;
  --pp-bg2: #ffdcc4;
  --pp-rail: #3b3566;
  --pp-go: #ff8a3c;
  --pp-go-d: #e2661a;
  --pp-mint: #3fcdb9;
  --pp-gold: #ffc531;
  --pp-bad: #e8433f;
  --pp-shadow: 0 2px 0 rgba(42,37,64,.08), 0 6px 16px rgba(74,60,110,.14);
  --pp-font: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--pp-font);
  color: var(--pp-ink);
  background: var(--pp-bg2);
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
button { font-family: inherit; color: inherit; }
[hidden] { display: none !important; }

.pp-app {
  position: relative;
  max-width: 480px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: env(safe-area-inset-top) 12px calc(10px + env(safe-area-inset-bottom));
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(255,255,255,.75) 0%, rgba(255,255,255,0) 70%),
    linear-gradient(180deg, var(--pp-bg) 0%, var(--pp-bg2) 100%);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  display: flex;
  flex-direction: column;
}

/* 상단 */
.pp-top { position: relative; z-index: 30; display: flex; align-items: center; gap: 6px; height: 48px; flex: none; padding-right: 42px; }
.pp-back { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 36px; font-size: 13px; font-weight: 800; color: var(--pp-ink); text-decoration: none; background: #fff; border-radius: 12px; padding: 0 10px; white-space: nowrap; box-shadow: var(--pp-shadow); }
.pp-title { flex: 1; min-width: 0; margin: 0; text-align: center; font-size: 19px; font-weight: 900; letter-spacing: -.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-icon { width: 36px; height: 36px; border: 0; border-radius: 12px; background: #fff; font-size: 15px; font-weight: 900; cursor: pointer; padding: 0; flex: none; box-shadow: var(--pp-shadow); }
.pp-icon:active, .pp-restart:active { transform: translateY(1px) scale(.96); }

/* 상태줄 */
.pp-status { display: flex; align-items: center; gap: 8px; margin: 2px 0 8px; flex: none; }
.pp-lvl { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; flex: 1; }
.pp-lvl b { font-size: 15px; font-weight: 900; }
.pp-lvl span { font-size: 12px; font-weight: 700; color: var(--pp-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-prog { position: relative; width: 132px; height: 24px; border-radius: 999px; background: rgba(42,37,64,.1); overflow: hidden; flex: none; box-shadow: inset 0 1px 3px rgba(42,37,64,.15); }
.pp-prog i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px; background: linear-gradient(180deg, #7be3d4, var(--pp-mint)); transition: width .25s; }
.pp-prog span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 900; font-variant-numeric: tabular-nums; }
.pp-restart { width: 32px; height: 32px; border: 0; border-radius: 12px; background: #fff; font-size: 16px; font-weight: 900; cursor: pointer; padding: 0; flex: none; box-shadow: var(--pp-shadow); }

/* 판 (레일 + 음식) — 캔버스가 둥근 판까지 직접 그린다 */
.pp-board-wrap { position: relative; flex: none; align-self: center; filter: drop-shadow(0 8px 0 #2b2650) drop-shadow(0 14px 14px rgba(59,53,102,.28)); margin: auto 0 8px; }
.pp-board-wrap canvas { display: block; touch-action: manipulation; }

/* 퐁퐁이 (그림 한 장 — 숫자는 배에 그려져 있다) */
.pp-cart {
  position: relative; display: block; width: 62px; height: 62px; padding: 0;
  background: transparent; border: 0; cursor: pointer; touch-action: manipulation;
  transition: transform .12s, opacity .15s;
}
.pp-cart .spr { display: block; width: 100%; height: 100%; pointer-events: none; filter: drop-shadow(0 3px 3px rgba(42,37,64,.22)); }
.pp-cart:active { transform: translateY(2px) scale(.94); }
.pp-cart.front { animation: ppBob 1.6s ease-in-out infinite; }
.pp-cart.idle { opacity: .6; animation: none; }
.pp-cart.rest .spr { transform-origin: 50% 100%; animation: ppBreath 2s ease-in-out infinite; }
.pp-cart.rest.idle .spr { animation-duration: 3.2s; }
.pp-cart.pulse { animation: ppPulse .9s ease-in-out infinite; }
.pp-cart.shake { animation: ppShake .3s; }

/* 대기 칸 */
.pp-shelf-row { display: flex; align-items: center; gap: 8px; margin: auto 0 6px; padding-top: 14px; flex: none; }
.pp-shelf-label { font-size: 12px; font-weight: 900; line-height: 1.2; text-align: center; width: 42px; flex: none; word-break: keep-all; }
.pp-shelf-label b { display: block; font-size: 13px; font-variant-numeric: tabular-nums; }
.pp-shelf-label.warn b { color: var(--pp-bad); }
.pp-shelf {
  flex: 1; display: flex; gap: 6px; padding: 7px; min-width: 0; align-items: center; justify-content: center;
  background: rgba(255,255,255,.6); border-radius: 20px; box-shadow: var(--pp-shadow);
}
.pp-slot {
  flex: 1 1 0; min-width: 0; max-width: 60px; aspect-ratio: 1; border-radius: 15px;
  background: rgba(42,37,64,.08); box-shadow: inset 0 2px 4px rgba(42,37,64,.12);
  display: flex; align-items: center; justify-content: center;
}
.pp-slot.extra { background: rgba(255,197,49,.3); box-shadow: inset 0 0 0 2px var(--pp-gold); }
.pp-slot .pp-cart { width: 92%; height: auto; aspect-ratio: 1; }
.pp-shelf.full .pp-slot { box-shadow: inset 0 0 0 2px var(--pp-bad); }

/* 퐁퐁이 줄 */
.pp-lanes { display: flex; gap: 10px; justify-content: center; margin-top: 4px; flex: none; }
.pp-lane {
  position: relative; flex: 1; max-width: 124px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 6px 8px; border-radius: 20px;
  background: rgba(255,255,255,.62); box-shadow: var(--pp-shadow);
}
.pp-lane .key { position: absolute; top: 5px; left: 9px; font-size: 10px; font-weight: 900; color: rgba(42,37,64,.35); }
.pp-lane .behind { width: 36px; height: 36px; cursor: default; opacity: .85; }
.pp-lane .more { position: absolute; right: 9px; top: 5px; font-size: 11px; font-weight: 900; color: var(--pp-sub); }
.pp-lane .empty { width: 62px; height: 62px; border-radius: 16px; background: rgba(42,37,64,.06); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: rgba(42,37,64,.35); }
.pp-lane .slot-empty { height: 36px; }
.pp-lane.enter .unit .pp-cart { animation: ppEnter .25s ease-out; }

/* 예고 표시: ✓ 한 바퀴에 다 씀 · ↩N N발 남아 대기 칸으로 */
.pp-cart .fc {
  position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); z-index: 2;
  min-width: 26px; padding: 1px 6px; border-radius: 999px; pointer-events: none; white-space: nowrap;
  font-size: 11px; font-weight: 900; line-height: 1.35; text-align: center; font-variant-numeric: tabular-nums;
  color: #fff; background: #1faf7a; box-shadow: 0 2px 0 rgba(42,37,64,.18);
}
.pp-cart .fc:empty { display: none; }
.pp-cart .fc.back { background: #f07f1c; }
.pp-cart.idle .fc { opacity: 1; }
.pp-lane .behind .fc { bottom: -8px; min-width: 22px; padding: 0 5px; font-size: 10px; }
.pp-slot .pp-cart .fc { bottom: -8px; min-width: 22px; padding: 0 5px; font-size: 10px; }
/* 맨 앞 묶음: 손을 잡고 나란히 선다 (1마리 62px · 2마리 48px · 3마리 34px) */
.pp-lane .unit { position: relative; display: flex; align-items: center; justify-content: center; min-height: 62px; }
.pp-lane .unit.n2 .pp-cart { width: 48px; height: 48px; }
.pp-lane .unit.n3 .pp-cart { width: 35px; height: 35px; }
.pp-lane .unit.n3 .pp-cart .fc { min-width: 20px; padding: 0 4px; font-size: 10px; bottom: -8px; }
.pp-lane .unit .ret {
  position: absolute; left: 50%; top: -11px; transform: translateX(-50%); z-index: 3; pointer-events: none; white-space: nowrap;
  font-size: 10px; font-weight: 900; color: #fff; background: #f07f1c; border-radius: 999px; padding: 1px 7px; box-shadow: 0 2px 0 rgba(42,37,64,.18);
}
.pp-lane .unit .ret:empty { display: none; }
/* 그다음 묶음(미리 보기) */
.pp-lane .behinds { display: flex; justify-content: center; align-items: center; min-height: 36px; }
.pp-lane .behinds.n3 .behind { width: 30px; height: 30px; }
/* 손을 잡은 모습: 두 친구 사이 틈에서 서로 내민 손이 맞닿아 있다(각자 자기 색) */
.hold { position: relative; width: 7px; height: 0; flex: none; align-self: center; z-index: 2; pointer-events: none; }
.hold::before, .hold::after {
  content: ''; position: absolute; top: 4px; width: 9px; height: 8px; border-radius: 5px;
  border: 1.5px solid rgba(42,37,64,.6); box-sizing: border-box;
}
.hold::before { left: -4px; background: var(--a); }
.hold::after { left: 2px; background: var(--b); }
.pp-lane .unit.n3 .hold { width: 5px; }
.pp-lane .unit.n3 .hold::before, .pp-lane .unit.n3 .hold::after { width: 8px; height: 7px; top: 3px; }
.pp-lane .unit.n3 .hold::before { left: -4px; }
.pp-lane .unit.n3 .hold::after { left: 1px; }
.pp-lane .behinds .hold { width: 4px; }
.pp-lane .behinds .hold::before, .pp-lane .behinds .hold::after { width: 6px; height: 6px; top: 2px; border-width: 1px; }
.pp-lane .behinds .hold::before { left: -3px; }
.pp-lane .behinds .hold::after { left: 1px; }
/* 손을 잡은 친구들은 따로 까딱거리지 않는다 */
.pp-lane.tied .pp-cart.front { animation: none; }
/* 대기 칸: 옆 칸 친구와 손을 잡고 있다(칸 사이 틈 위에) */
.pp-slot { position: relative; }
.pp-slot > .hold { position: absolute; left: 100%; top: 58%; width: 6px; }
.pp-slot > .hold::before { left: -5px; top: 0; }
.pp-slot > .hold::after { left: 2px; top: 0; }
/* 레일 정원 표시 */
.pp-shelf-label .rail { display: block; margin-top: 4px; font-size: 10px; opacity: .75; white-space: nowrap; }
.pp-shelf-label .rail.warn { color: #e2552f; opacity: 1; }
.pp-shelf-label .rail b { font-size: 11px; color: inherit; }

/* 안내 */
.pp-tip {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 220px; width: calc(100% - 40px); max-width: 400px;
  background: #fff; border-radius: 18px; box-shadow: 0 3px 0 rgba(42,37,64,.1), 0 10px 24px rgba(74,60,110,.25);
  padding: 10px 14px; font-size: 13px; font-weight: 800; line-height: 1.45; text-align: center; z-index: 20; word-break: keep-all;
  animation: ppTipPop .25s cubic-bezier(.2,1.6,.4,1); pointer-events: none;
}
.pp-finger { position: absolute; z-index: 25; font-size: 34px; pointer-events: none; animation: ppFinger 1s ease-in-out infinite; filter: drop-shadow(0 2px 2px rgba(42,37,64,.25)); }
.pp-finger span { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); white-space: nowrap; font-size: 13px; font-weight: 900; background: var(--pp-go); color: #fff; border-radius: 999px; padding: 3px 11px; box-shadow: 0 3px 0 var(--pp-go-d); }
.pp-toast {
  position: absolute; left: 50%; top: 38%; transform: translateX(-50%); z-index: 30; white-space: nowrap;
  background: rgba(42,37,64,.92); color: #fff; font-size: 13px; font-weight: 800; padding: 8px 15px; border-radius: 999px;
  animation: ppToast 1.6s ease-out forwards; pointer-events: none;
}
.pp-fly-layer { position: absolute; inset: 0; pointer-events: none; z-index: 15; }
.pp-fly { position: absolute; transition: transform .24s cubic-bezier(.3,.7,.4,1), opacity .2s; will-change: transform; }
/* 늘어나는 손(한 마리씩 나오거나 들어가는 묶음) — 화면 전체에 겹쳐 그린다 */
.pp-link-layer { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 14; }
/* 대기 칸: 아직 레일을 도는 친구의 자리(잡아 둔 칸) */
.pp-slot.held { box-shadow: inset 0 0 0 2px rgba(42,37,64,.22); }
.pp-slot .pp-cart.ghost { opacity: .3; filter: saturate(.7); pointer-events: none; cursor: default; }
/* 줄: 한 마리씩 나가는 중인 묶음의 남은 친구들(누를 수 없다) */
.pp-lane .unit .pp-cart.going { cursor: default; animation: none; }
/* 마무리: 남은 퐁퐁이들이 알아서 나간다 — 줄·대기 칸은 누를 수 없다 */
.pp-app.finale .pp-lanes, .pp-app.finale .pp-shelf { pointer-events: none; }
.pp-app.finale .pp-lane .unit .pp-cart, .pp-app.finale .pp-slot .pp-cart { animation: none; }

/* 오버레이 */
.pp-overlay { position: absolute; inset: 0; z-index: 40; background: rgba(28,22,48,.5); display: flex; align-items: center; justify-content: center; padding: 14px; }
.pp-overlay.sheet { align-items: flex-end; background: rgba(28,22,48,.25); padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
.pp-card {
  width: 100%; max-width: 380px; max-height: 100%; overflow: auto;
  background: var(--pp-paper); border-radius: 26px; box-shadow: 0 5px 0 rgba(42,37,64,.14), 0 18px 44px rgba(28,22,48,.35);
  padding: 16px; text-align: center; animation: ppPop .3s cubic-bezier(.2,1.5,.4,1);
}
.pp-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 17px; }
.pp-card-head b { flex: 1; text-align: left; }
.pp-card-head span { font-size: 13px; font-weight: 800; color: var(--pp-sub); }
.pp-x { width: 32px; height: 32px; border: 0; border-radius: 12px; background: rgba(42,37,64,.08); font-weight: 900; cursor: pointer; }
.pp-btn {
  display: block; width: 100%; margin-top: 10px; padding: 13px; font-size: 16px; font-weight: 900; cursor: pointer;
  border: 0; border-radius: 16px; background: #fff; box-shadow: 0 4px 0 rgba(42,37,64,.14);
}
.pp-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(42,37,64,.14); }
.pp-btn.go { background: linear-gradient(180deg, #ffa257, var(--pp-go)); color: #fff; box-shadow: 0 4px 0 var(--pp-go-d); }
.pp-btn.go:active { box-shadow: 0 1px 0 var(--pp-go-d); }
.pp-btn.go:focus-visible { outline: 3px solid var(--pp-gold); outline-offset: 2px; }
.pp-btn.ghost { background: transparent; box-shadow: inset 0 0 0 2px rgba(42,37,64,.16); font-size: 14px; padding: 10px; }

.pp-win-head { font-size: 25px; font-weight: 900; letter-spacing: -1px; color: var(--pp-go-d); }
.pp-frame { position: relative; display: inline-block; margin: 10px auto 4px; padding: 12px; background: #d6cfea; border-radius: 22px; box-shadow: inset 0 2px 5px rgba(42,37,64,.14); }
.pp-frame canvas { display: block; }
.pp-hang { position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%); white-space: nowrap; font-size: 11px; font-weight: 900; background: var(--pp-gold); border-radius: 999px; padding: 3px 10px; box-shadow: 0 2px 0 rgba(42,37,64,.15); animation: ppPop .4s .5s both cubic-bezier(.2,1.6,.4,1); }
.pp-win-name { margin-top: 18px; font-size: 16px; font-weight: 900; }
.pp-stars { margin: 4px 0 2px; font-size: 32px; letter-spacing: 4px; }
.pp-stars i { font-style: normal; color: #ddd4ea; }
.pp-stars i.on { color: var(--pp-gold); text-shadow: 0 2px 0 #e09a00; animation: ppStar .4s both cubic-bezier(.2,1.8,.4,1); }
.pp-stars i.on:nth-child(2) { animation-delay: .15s; } .pp-stars i.on:nth-child(3) { animation-delay: .3s; }
.pp-win-note { font-size: 12px; font-weight: 700; color: var(--pp-sub); }
.pp-gamelink { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 900; color: #1f9c8c; text-decoration: none; border-bottom: 2px solid currentColor; }
.pp-next-preview { display: flex; align-items: center; gap: 10px; margin: 10px auto 0; padding: 8px 14px; background: rgba(42,37,64,.06); border-radius: 16px; width: fit-content; text-align: left; }
.pp-next-preview canvas { display: block; }
.pp-next-preview small { display: block; font-size: 11px; font-weight: 800; color: var(--pp-sub); }
.pp-next-preview b { font-size: 14px; }

.pp-fail { max-width: 420px; }
.pp-fail-pct { font-size: 15px; font-weight: 800; }
.pp-fail-pct b { font-size: 34px; font-weight: 900; color: var(--pp-go-d); }
.pp-fail-msg { font-size: 14px; font-weight: 800; margin-top: 2px; word-break: keep-all; }

.pp-gal-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.pp-gal-item { position: relative; aspect-ratio: 1; border: 0; border-radius: 14px; background: #d6cfea; padding: 7px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pp-gal-item img { width: 100%; height: 100%; object-fit: contain; }
.pp-gal-item.locked { cursor: default; }
.pp-gal-item.locked.open { cursor: pointer; }
.pp-gal-item.cur { box-shadow: 0 0 0 3px var(--pp-go); cursor: pointer; }
.pp-gal-item .n { position: absolute; left: 5px; top: 3px; font-size: 9px; font-weight: 900; color: rgba(42,37,64,.45); }
.pp-gal-item.locked img { opacity: .75; }
.pp-gal-item .st { position: absolute; right: 4px; bottom: 1px; font-size: 9px; color: #f0a800; letter-spacing: -1px; }
.pp-gal-detail { margin-top: 12px; padding-top: 12px; border-top: 2px solid rgba(42,37,64,.08); }
.pp-gal-detail img { width: 124px; height: 124px; object-fit: contain; background: #d6cfea; border-radius: 20px; padding: 12px; }
.pp-gal-detail b { display: block; margin-top: 6px; font-size: 15px; }
.pp-gal-detail .desc { margin: 4px 0 0; font-size: 13px; font-weight: 700; color: var(--pp-sub); line-height: 1.45; word-break: keep-all; }
.pp-gal-detail .row { display: flex; flex-direction: column-reverse; gap: 0; }
.pp-gal-detail .row .pp-btn { font-size: 15px; padding: 11px; }
.pp-gal-detail .row .pp-btn.ghost { margin-top: 8px; }

.pp-help ol { text-align: left; padding-left: 20px; margin: 0; font-size: 14px; line-height: 1.55; word-break: keep-all; }
.pp-help li { margin-bottom: 6px; }
.pp-keys { font-size: 12px; color: var(--pp-sub); }
kbd { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 6px; background: #fff; box-shadow: 0 2px 0 rgba(42,37,64,.2), 0 0 0 1px rgba(42,37,64,.12); font-size: 11px; font-weight: 800; margin: 0 2px; }
.pp-ad { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.pp-ad small { font-size: 11px; color: var(--pp-sub); }
.pp-ad-count { font-size: 40px; font-weight: 900; }
.pp-help-critters { display: flex; justify-content: center; gap: 8px; margin: 0 0 10px; }
.pp-help-critters figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 1; }
.pp-help-critters img { width: 54px; height: 54px; }
.pp-help-critters figcaption { font-size: 11px; font-weight: 800; color: var(--pp-sub); white-space: nowrap; text-align: center; }

@keyframes ppPulse { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-4px) scale(1.05); } }
@keyframes ppShake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes ppEnter { 0% { transform: translateY(30px) scale(.7); opacity: .4; } 100% { transform: none; opacity: 1; } }
@keyframes ppPop { 0% { transform: scale(.7); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes ppTipPop { 0% { transform: translateX(-50%) scale(.7); opacity: 0; } 100% { transform: translateX(-50%) scale(1); opacity: 1; } }
@keyframes ppFinger { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes ppToast { 0% { opacity: 0; transform: translate(-50%, 6px); } 12% { opacity: 1; transform: translate(-50%, 0); } 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ppStar { 0% { transform: scale(0) rotate(-40deg); } 100% { transform: none; } }
@keyframes ppBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes ppBreath { 0%,100% { transform: scale(1, 1); } 50% { transform: scale(1.04, .96); } }

@media (max-height: 660px) {
  .pp-top { height: 42px; }
  .pp-status { margin-bottom: 4px; }
  .pp-shelf-row { margin: auto 0 4px; padding-top: 4px; }
  .pp-slot { max-width: 46px; }
  .pp-cart { width: 54px; height: 54px; }
  .pp-lane { padding: 10px 6px 6px; gap: 4px; }
  .pp-lane .behind { width: 28px; height: 28px; }
  .pp-lane .slot-empty { height: 28px; }
  .pp-lane .behinds { min-height: 28px; }
  .pp-lane .behinds.n3 .behind { width: 24px; height: 24px; }
  .pp-lane .unit { min-height: 54px; }
  .pp-lane .unit.n2 .pp-cart { width: 44px; height: 44px; }
  .pp-lane .unit.n3 .pp-cart { width: 33px; height: 33px; }
  .pp-lane .empty { width: 54px; height: 54px; }
}

/* ================= 포탈과 함께 쓰기 (2026-11-30 정식 추가) ================= */
/* 게임 그림이 매끈한 광택이라, 포탈 8-bit 테마의 픽셀 확대·스캔라인은 이 페이지에서 끈다 */
html[data-fc-theme="dark8bit"] { image-rendering: auto; background: var(--pp-bg2); color: var(--pp-ink); }
html[data-fc-theme="dark8bit"]::before { content: none; }
/* 8-bit 테마의 공용 '누름' 효과(분홍 그림자) 대신 게임 고유 눌림 */
[data-fc-theme="dark8bit"] .pp-app button:not(:disabled):active { transform: none; box-shadow: none; }
[data-fc-theme="dark8bit"] .pp-app button.pp-icon:not(:disabled):active,
[data-fc-theme="dark8bit"] .pp-app button.pp-restart:not(:disabled):active { transform: translateY(1px) scale(.96); box-shadow: var(--pp-shadow); }
[data-fc-theme="dark8bit"] .pp-app button.pp-cart:not(:disabled):active { transform: translateY(2px) scale(.94); }
[data-fc-theme="dark8bit"] .pp-app button.pp-btn:not(:disabled):active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(42,37,64,.14); }
[data-fc-theme="dark8bit"] .pp-app button.pp-btn.go:not(:disabled):active { box-shadow: 0 1px 0 var(--pp-go-d); }
[data-fc-theme="dark8bit"] .pp-app button.pp-btn.ghost:not(:disabled):active { box-shadow: inset 0 0 0 2px rgba(42,37,64,.16); }
[data-fc-theme="dark8bit"] .pp-app button.pp-gal-item.cur:not(:disabled):active { box-shadow: 0 0 0 3px var(--pp-go); }
.pp-app, .pp-article { font-family: var(--pp-font); }
/* 헤더에 붙는 포탈 골드·프로필(로그인·언어) */
.pp-top .gold-display { flex: none; height: 30px; gap: 3px; padding: 0 8px 0 5px; border: 0; border-radius: 999px; background: #fff; box-shadow: var(--pp-shadow); font-family: inherit; font-size: 12px; font-weight: 900; color: var(--pp-ink); font-variant-numeric: tabular-nums; }
.pp-top .gold-display-icon { width: 17px; height: 17px; }
.pp-top .gold-display-amount { min-width: 0; }
.pp-top .profile-menu--game { top: 6px; right: 0; }
.pp-top .profile-btn { width: 36px; height: 36px; background: #fff; border-color: rgba(42,37,64,.14); box-shadow: var(--pp-shadow); }
@media (max-width: 389px) {
  .pp-top { gap: 4px; padding-right: 38px; }
  .pp-back { padding: 0 8px; height: 32px; }
  .pp-icon { width: 32px; height: 32px; font-size: 14px; }
  .pp-title { font-size: 17px; }
  .pp-top .profile-btn { width: 32px; height: 32px; }
  .pp-top .profile-menu--game { top: 8px; }
  .pp-top .gold-display { height: 28px; padding: 0 6px 0 4px; }
}
@media (max-width: 349px) {
  .pp-back-t { display: none; }
  .pp-title { font-size: 15px; }
}
/* 설명 글 · 댓글 · 광고는 게임 칸 폭에 */
.pp-article { max-width: 480px; margin: 0 auto; padding: 18px 18px 26px; background: var(--pp-paper); color: var(--pp-ink); font-size: 14px; line-height: 1.7; }
.pp-article h2 { margin: 14px 0 6px; font-size: 17px; font-weight: 900; letter-spacing: -.3px; }
.pp-article h2:first-child { margin-top: 0; }
.pp-article p { margin: 0 0 8px; }
.pp-article ol { margin: 0; padding-left: 20px; }
.pp-article li { margin-bottom: 4px; }
#fcsComments.fcsc { max-width: 480px; margin: 0 auto 24px; }
.pp-ad-slot { max-width: 480px !important; }
