.photo-game { max-width:600px; margin:20px auto 0; color:var(--ink); }
.photo-game [hidden] { display:none !important; }
.photo-level-title { margin:0 0 18px; font-size:20px; line-height:1.5; text-align:left; }
.photo-rules { display:grid; gap:10px; margin:0 0 22px; padding:0; list-style:none; text-align:left; }
.photo-rule { display:grid; grid-template-columns:24px minmax(0,1fr) auto; align-items:center; gap:8px; font-size:15px; line-height:1.5; }
.photo-rule-mark { color:var(--control-ink); font-size:22px; font-weight:750; text-align:center; }
.photo-rule-state { color:var(--control-ink); font-size:12px; white-space:nowrap; }
.photo-rule[data-satisfied="true"] .photo-rule-mark { background:var(--accent-soft); border-radius:6px; }
.photo-frame { position:relative; padding:24px 8px 16px; border:1px solid var(--line); border-radius:16px; background:var(--surface-soft); }
.photo-frame.is-shot { border-color:var(--purple); background:var(--accent-soft); }
.photo-frame.is-shot::before { position:absolute; inset:5px; border:1px solid var(--purple); border-radius:11px; content:""; pointer-events:none; }
.photo-lineup { display:grid; grid-template-columns:repeat(var(--photo-count),minmax(44px,88px)); justify-content:center; align-items:end; gap:4px; }
.photo-slot { display:flex; align-items:center; justify-content:center; position:relative; min-width:44px; min-height:112px; padding:10px 0; border:0; border-radius:12px; background:transparent; touch-action:none; user-select:none; cursor:grab; }
.photo-slot:hover:not(:disabled), .photo-slot[aria-pressed="true"] { background:var(--surface); }
.photo-slot[aria-pressed="true"]::after { position:absolute; inset:0; border:2px dashed var(--purple); border-radius:12px; content:""; pointer-events:none; }
.photo-slot:focus-visible { outline:3px solid var(--purple); outline-offset:0; }
.photo-slot.is-dragging { opacity:.55; cursor:grabbing; }
.photo-slot.is-drop-target { outline:3px dashed var(--purple); outline-offset:-3px; }
.photo-slot:disabled { cursor:default; }
.photo-body { --monster:#f18b9d; --pose:-5deg; display:block; position:relative; width:calc(100% - 8px); max-width:64px; height:82px; border:2px solid color-mix(in srgb,var(--monster) 72%,#30204e); border-radius:12px; background:var(--monster); color:#30253d; transition:transform .25s cubic-bezier(.16,1,.3,1); }
.photo-body::before, .photo-body::after { position:absolute; top:43px; width:7px; height:24px; border-radius:7px; background:color-mix(in srgb,var(--monster) 80%,#30204e); content:""; }
.photo-body::before { left:-6px; transform:rotate(14deg); }
.photo-body::after { right:-6px; transform:rotate(-14deg); }
.photo-body[data-monster="2"] { --monster:#f5ca69; --pose:4deg; border-radius:7px; }
.photo-body[data-monster="3"] { --monster:#89cdae; --pose:-3deg; border-radius:18px 18px 8px 8px; }
.photo-body[data-monster="4"] { --monster:#91c1e6; --pose:5deg; border-radius:8px 17px; }
.photo-body[data-monster="5"] { --monster:#bca5e8; --pose:-4deg; border-radius:18px 7px; }
.photo-number { display:block; margin-top:3px; font-size:21px; font-weight:850; line-height:1.2; }
.photo-eyes { display:flex; justify-content:center; gap:7px; position:absolute; top:33px; left:0; right:0; }
.photo-eye { display:block; position:relative; width:12px; height:15px; border-radius:50%; background:#fffdfb; }
.photo-eye::after { position:absolute; top:5px; left:4px; width:5px; height:7px; border-radius:50%; background:#30253d; content:""; }
.photo-mouth { position:absolute; top:55px; left:50%; width:17px; height:9px; border:2px solid #30253d; border-top:0; border-radius:0 0 14px 14px; transform:translateX(-50%); }
.photo-body[data-monster="2"] .photo-mouth { width:13px; height:5px; }
.photo-body[data-monster="4"] .photo-mouth { width:11px; height:11px; border-top:2px solid #30253d; border-radius:50%; }
.photo-frame.is-shot .photo-body { transform:translateY(-6px) rotate(var(--pose)); }
.photo-frame.is-shot .photo-body::before { top:25px; transform:rotate(145deg); }
.photo-frame.is-shot .photo-body::after { top:25px; transform:rotate(-145deg); }
.photo-caption { position:relative; margin:14px 0 0; padding:0 6px; font-size:18px; font-weight:750; line-height:1.5; text-wrap:balance; }
.photo-help { margin:18px 0 8px; color:var(--control-ink); font-size:14px; line-height:1.6; text-wrap:balance; }
.photo-status { min-height:24px; margin:0 0 16px; color:var(--control-ink); font-size:14px; line-height:1.6; }
.photo-controls { display:flex; justify-content:center; flex-wrap:wrap; gap:10px; }
.photo-controls .game-button { min-width:44px; }
@media (max-width:480px) {
  .photo-rule { grid-template-columns:20px minmax(0,1fr); gap:4px 7px; font-size:14px; }
  .photo-rule-state { grid-column:2; }
  .photo-level-title { font-size:18px; }
  .photo-body { height:74px; }
  .photo-number { font-size:19px; }
  .photo-eyes { top:29px; gap:4px; }
  .photo-eye { width:10px; height:13px; }
  .photo-eye::after { top:4px; left:3px; width:4px; height:6px; }
  .photo-mouth { top:50px; }
  .photo-body::before, .photo-body::after { top:38px; width:5px; }
  .photo-body::before { left:-5px; }
  .photo-body::after { right:-5px; }
  .photo-controls { gap:8px; }
  .photo-controls .game-button { padding:10px 12px; }
}
@media (prefers-reduced-motion:reduce) { .photo-body { transition:none; } }
