:root {
  --gyfp-ink: #12100e;
  --gyfp-layer: #1c1917;
  --gyfp-bubble: #262220;
  --gyfp-paper: #e8dcc8;
  --gyfp-text: #f5f1ea;
  --gyfp-muted: #8c8378;
  --gyfp-apricot: #e0a87e;
}

.gyfp-shell {
  box-sizing: border-box;
  width: min(100%, 31rem);
  min-height: 100%;
  margin: 0 auto;
  padding: 28px 22px calc(28px + env(safe-area-inset-bottom));
  color: var(--gyfp-text);
  background: var(--gyfp-ink);
  font: 15px/1.72 system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans KR", sans-serif;
}

.gyfp-head { display: flex; align-items: center; gap: 14px; margin-bottom: 38px; }
.gyfp-scene { position: relative; width: 100%; aspect-ratio: 1; margin: 0 0 24px; overflow: hidden; background: var(--gyfp-layer); }
.gyfp-scene-bg { display: block; width: 100%; height: 100%; object-fit: cover; }
.gyfp-scene-prop { position: absolute; right: 5%; bottom: 5%; width: 42%; max-height: 56%; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(0,0,0,.32)); }
.gyfp-scene-prop:nth-of-type(3) { right: auto; left: 5%; width: 34%; }
.gyfp-media { display: block; width: 100%; aspect-ratio: 1; margin: 0 0 24px; border-radius: 0; object-fit: cover; background: var(--gyfp-layer); }
.gyfp-eyebrow { color: var(--gyfp-muted); font-size: 12px; letter-spacing: .08em; }
.gyfp-progress { height: 2px; flex: 1; overflow: hidden; background: var(--gyfp-layer); }
.gyfp-progress-fill { display: block; height: 100%; background: var(--gyfp-apricot); transition: width .22s ease-out; }
.gyfp-title { margin: 0 0 15px; font: 600 24px/1.35 Georgia, "Noto Serif KR", serif; letter-spacing: -.025em; }
.gyfp-body { margin: 0; white-space: pre-line; color: var(--gyfp-text); }
.gyfp-unlocked { margin: 26px 0 0; color: var(--gyfp-apricot); font-size: 12px; }
.gyfp-controls { display: grid; gap: 10px; margin-top: 38px; }
.gyfp-button {
  min-height: 48px;
  padding: 12px 17px;
  border: 1px solid color-mix(in srgb, var(--gyfp-paper) 22%, transparent);
  border-radius: 18px;
  color: var(--gyfp-ink);
  background: var(--gyfp-paper);
  font: inherit;
  text-align: left;
  cursor: pointer;
  animation: gyfp-rise .18s ease-out both;
}
.gyfp-button:focus-visible { outline: 2px solid var(--gyfp-apricot); outline-offset: 3px; }
.gyfp-button:disabled { cursor: wait; opacity: .48; }
.gyfp-hint, .gyfp-muted { color: var(--gyfp-muted); font-size: 12px; }
.gyfp-hint { margin: -5px 7px 5px; }
.gyfp-error { margin: 20px 0 0; color: var(--gyfp-apricot); font-size: 12px; }

@keyframes gyfp-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .gyfp-button { animation: none; }
  .gyfp-progress-fill { transition: none; }
}
@media (prefers-color-scheme: light) {
  :root {
    --gyfp-ink: #f5f1ea;
    --gyfp-layer: #ebe3d8;
    --gyfp-bubble: #e4dbcf;
    --gyfp-paper: #262220;
    --gyfp-text: #1c1917;
    --gyfp-muted: #756d64;
    --gyfp-apricot: #b86f47;
  }
}
