:root {
  --paper: #ede9e0;
  --photo: #fffdf7;
  --ink: #302f2a;
  --quiet: #706e63;
  --line: #d6d0c2;
  --curtain: #b9c9bb;
  --camera: #303b38;
  --film: #e7dfd0;
  --signal: #b56843;
  --good: #386657;
  --focus: #ba713f;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    15px/1.65 system-ui,
    -apple-system,
    "Malgun Gothic",
    "Apple SD Gothic Neo",
    sans-serif;
  word-break: keep-all;
}
button,
input {
  font: inherit;
}
button {
  color: inherit;
  background: var(--photo);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px 17px;
  min-height: 44px;
  font-weight: 650;
  cursor: pointer;
  touch-action: manipulation;
}
button:hover:not(:disabled) {
  border-color: var(--camera);
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
a {
  color: inherit;
}
img {
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
.primary {
  color: var(--photo);
  background: var(--camera);
  border-color: var(--camera);
}
.skip {
  position: fixed;
  left: 15px;
  top: -70px;
  background: var(--photo);
  z-index: 9;
  padding: 10px;
}
.skip:focus {
  top: 8px;
}
.site-header {
  max-width: 1020px;
  margin: auto;
  padding: 17px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 750;
  font-size: 14px;
}
.brand img {
  object-fit: contain;
}
.back {
  font-size: 12px;
  color: var(--quiet);
  text-underline-offset: 4px;
}
main {
  max-width: 940px;
  margin: 30px auto;
  padding: 0 20px;
}
.page-title {
  font-size: 30px;
  line-height: 1.25;
  margin: 0 0 9px;
  letter-spacing: -1px;
}
.page-copy {
  margin: 0 0 26px;
  color: var(--quiet);
  font-size: 14px;
}
.studio {
  background: var(--photo);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  scroll-margin-top: 12px;
}
.tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  background: #e5e9df;
  font-size: 11px;
  color: var(--quiet);
}
.tools > div {
  display: flex;
  gap: 7px;
  align-items: center;
}
.tools b {
  font-weight: 500;
}
.tools button {
  font-size: 11px;
  padding: 5px 9px;
  min-height: 35px;
}
.game-content {
  position: relative;
}
.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 28px 30px;
  gap: 28px;
}
.intro h2 {
  font-size: 29px;
  line-height: 1.35;
  letter-spacing: -0.9px;
  margin: 0 0 15px;
}
.intro p {
  font-size: 14px;
  color: var(--quiet);
  margin: 0 0 22px;
}
.start-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.mini-print {
  position: relative;
  background: var(--photo);
  border: 1px solid var(--line);
  padding: 10px 10px 34px;
  transform: rotate(3deg);
  box-shadow: 0 5px 0 #dcd6c8;
}
.mini-print .photo-scene {
  aspect-ratio: 1.2;
  min-height: 0;
}
.mini-print p {
  font-size: 11px;
  margin: 12px 0 -21px;
  text-align: center;
  color: var(--quiet);
  letter-spacing: 1px;
}
.intro-foot {
  font-size: 12px;
  padding: 12px 25px;
  background: #f5f1e8;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--quiet);
}
.shooting-area {
  padding: 18px 22px 20px;
}
.round-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 10px;
  gap: 10px;
}
.round-label {
  color: var(--quiet);
  font-size: 12px;
}
.round-bar b {
  font-weight: 750;
}
.frame {
  position: relative;
  background: var(--camera);
  padding: 10px;
  border-radius: 8px;
  color: var(--photo);
}
.frame-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 1px 4px 9px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.record-light {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  margin-right: 7px;
}
.frame-bar b {
  font-size: 14px;
}
.frame .photo-scene {
  aspect-ratio: 1.8;
}
.photo-scene {
  background: #b9c9bb;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.photo-scene[data-theme="1"] {
  background: #c8d3d9;
}
.photo-scene[data-theme="2"] {
  background: #d4bfac;
}
.photo-scene[data-theme="3"] {
  background: #c8c0d1;
}
.photo-scene[data-theme="4"] {
  background: #c3c6b0;
}
.photo-scene:before {
  content: "";
  position: absolute;
  inset: 80% 0 0;
  background: rgba(255, 255, 255, 0.18);
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}
.actor {
  position: absolute;
  left: var(--x);
  bottom: var(--y);
  height: var(--h);
  width: var(--w);
  transform: translateX(-50%);
  object-fit: contain;
  object-position: center bottom;
  z-index: var(--z);
  user-select: none;
  pointer-events: none;
}
.moving .actor {
  animation: breathe 2.6s ease-in-out infinite;
  animation-delay: var(--delay);
}
@keyframes breathe {
  50% {
    translate: 0 -2px;
  }
}
.view-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: rgba(255, 255, 255, 0.6);
  border-style: solid;
  z-index: 8;
  pointer-events: none;
}
.view-corner.tl {
  left: 22px;
  top: 51px;
  border-width: 1px 0 0 1px;
}
.view-corner.tr {
  right: 22px;
  top: 51px;
  border-width: 1px 1px 0 0;
}
.view-corner.bl {
  left: 22px;
  bottom: 22px;
  border-width: 0 0 1px 1px;
}
.view-corner.br {
  right: 22px;
  bottom: 22px;
  border-width: 0 1px 1px 0;
}
.countdown {
  position: absolute;
  inset: 42px 10px 10px;
  display: grid;
  place-content: center;
  text-align: center;
  background: rgba(40, 49, 44, 0.34);
  z-index: 9;
  pointer-events: none;
}
.countdown b {
  font-size: 68px;
  line-height: 1.1;
  color: #fffaf0;
}
.countdown span {
  font-size: 13px;
  margin-top: 8px;
}
.time-track {
  height: 3px;
  background: #c4c6bb;
  margin-top: 9px;
}
.time-track > span {
  display: block;
  height: 100%;
  background: var(--camera);
  transform-origin: left;
  transition: none;
}
.time-track.urgent > span {
  background: var(--signal);
}
.controls {
  display: grid;
  grid-template-columns: 1fr 92px 1fr;
  gap: 18px;
  align-items: center;
  margin: 16px 0 0;
}
.control-note {
  font-size: 12px;
  line-height: 1.6;
  color: var(--quiet);
}
.control-note.right {
  text-align: right;
}
.control-note strong {
  display: block;
  font-size: 13px;
  color: var(--ink);
}
.shutter {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  padding: 6px;
  background: var(--camera);
  border: 1px solid var(--camera);
  box-shadow: inset 0 0 0 3px #c7c8bc;
  color: var(--ink);
  font-size: 14px;
  position: relative;
  transition: transform 0.1s;
}
.shutter:before {
  content: "";
  position: absolute;
  inset: 9px;
  background: var(--photo);
  border-radius: 50%;
  border: 2px solid #b8b9ad;
}
.shutter span {
  position: relative;
  z-index: 1;
}
.shutter:active:not(:disabled) {
  transform: scale(0.94);
}
.hint-line {
  text-align: center;
  font-size: 11px;
  color: var(--quiet);
  margin: 12px 0 0;
}
.practice-label {
  color: var(--signal);
  font-weight: 750;
}
.flash {
  position: absolute;
  inset: 0;
  background: white;
  z-index: 10;
  opacity: 0;
  animation: flash 0.32s ease-out forwards;
  pointer-events: none;
}
@keyframes flash {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
.review-area {
  padding: 20px 24px;
}
.review-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
  margin-bottom: 16px;
}
.review-heading h2 {
  font-size: 22px;
  margin: 0 0 5px;
  line-height: 1.35;
}
.review-heading p {
  font-size: 12px;
  color: var(--quiet);
  margin: 0;
}
.photo-score {
  font-size: 32px;
  line-height: 1.25;
  white-space: nowrap;
}
.photo-score small {
  font-size: 12px;
  font-weight: 400;
  color: var(--quiet);
}
.photo-print {
  padding: 10px 10px 16px;
  background: var(--photo);
  border: 1px solid var(--line);
  box-shadow: 0 4px 0 #ece6d9;
}
.photo-print .photo-scene {
  aspect-ratio: 1.8;
}
.photo-caption {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin: 10px 3px 0;
  color: var(--quiet);
  gap: 10px;
}
.pose-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
  font-size: 11px;
  color: var(--quiet);
}
.pose-list .good {
  color: var(--good);
}
.pose-list .bad {
  color: #a25138;
}
.review-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.review-actions p {
  color: var(--quiet);
  font-size: 11px;
  max-width: 70%;
  margin: 0;
}
.loading,
.error,
.practice-end {
  text-align: center;
  padding: 55px 25px;
}
.loading h2,
.error h2,
.practice-end h2 {
  font-size: 23px;
  margin: 0 0 12px;
}
.loading p,
.error p,
.practice-end p {
  color: var(--quiet);
  font-size: 13px;
}
.loading progress {
  width: 200px;
  accent-color: var(--camera);
}
.practice-end img {
  height: 150px;
  object-fit: contain;
}
.pause-layer {
  position: absolute;
  z-index: 12;
  inset: 0;
  background: rgba(255, 253, 247, 0.97);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 28px;
}
.pause-layer h2 {
  font-size: 26px;
  margin: 0 0 10px;
}
.pause-layer p {
  color: var(--quiet);
  font-size: 13px;
  max-width: 360px;
  margin: 0 0 25px;
}
.result {
  padding: 25px;
}
.result-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.result-heading p {
  font-size: 12px;
  margin: 0 0 6px;
  color: var(--quiet);
}
.result-heading h2 {
  font-size: 26px;
  line-height: 1.4;
  margin: 0 0 12px;
}
.total {
  font-size: 48px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  letter-spacing: -2px;
}
.total small {
  font-size: 15px;
  letter-spacing: 0;
  color: var(--quiet);
  font-weight: 450;
}
.perfect-stamp {
  font-size: 13px;
  color: var(--good);
  padding-top: 6px;
  white-space: nowrap;
}
.contact-sheet {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  padding: 16px;
  background: var(--film);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.contact-sheet figure {
  margin: 0;
  padding: 5px 5px 8px;
  background: var(--photo);
  border: 1px solid #d9d1c1;
}
.contact-sheet .photo-scene {
  aspect-ratio: 1.7;
}
.contact-sheet figcaption {
  display: flex;
  justify-content: space-between;
  gap: 3px;
  margin: 5px 2px 0;
  font-size: 10px;
  color: var(--quiet);
}
.contact-sheet .sheet-note {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  color: var(--quiet);
  font-size: 11px;
  line-height: 1.8;
}
.sheet-note b {
  color: var(--ink);
  font-size: 15px;
}
.share-actions,
.retry-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.share-actions {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
}
.share-actions button,
.retry-actions button {
  font-size: 12px;
}
.share-message {
  font-size: 12px;
  color: var(--good);
  min-height: 22px;
  margin: 9px 0 0;
}
.fallback {
  width: 100%;
  font-size: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 5px;
}
.retry-actions {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 7px;
}
.retry-actions button {
  background: transparent;
}
.guide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  margin-top: 32px;
}
.guide h2,
.more-games h2 {
  font-size: 18px;
  line-height: 1.5;
  margin: 0 0 14px;
}
.guide p,
.guide li {
  font-size: 13px;
  line-height: 1.85;
  color: var(--quiet);
}
.guide ol {
  padding-left: 21px;
  margin: 0 0 20px;
}
.guide li {
  padding-left: 2px;
  margin: 7px 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  margin: 15px 0;
}
th,
td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 9px 7px;
}
td {
  color: var(--quiet);
}
.note {
  font-size: 11px !important;
}
details {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
}
.guide details p {
  font-size: 12px;
  margin-bottom: 0;
}
.ad-zone {
  max-width: 900px;
  min-height: 100px;
  margin: 30px auto;
  text-align: center;
}
.ad-zone > small {
  display: block;
  color: #8b887e;
  font-size: 10px;
  margin-bottom: 6px;
}
.more-games {
  margin: 32px 0 20px;
}
.more-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.more-links a {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px;
  background: var(--photo);
  border: 1px solid var(--line);
  border-radius: 7px;
  text-decoration: none;
}
.more-links img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}
.more-links b {
  display: block;
  font-size: 13px;
}
.more-links small {
  color: var(--quiet);
  font-size: 11px;
}
footer {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  max-width: 940px;
  margin: auto;
  padding: 18px 20px 32px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--quiet);
}
footer span {
  margin-left: auto;
}
@media (max-width: 620px) {
  body {
    font-size: 14px;
  }
  .site-header {
    padding: 12px 15px;
  }
  .brand {
    font-size: 12px;
  }
  .brand img {
    width: 25px;
    height: 25px;
  }
  .back {
    font-size: 10px;
  }
  main {
    padding: 0 12px;
    margin: 23px auto;
  }
  .page-title {
    font-size: 26px;
  }
  .page-copy {
    font-size: 12px;
    margin-bottom: 20px;
  }
  .tools {
    padding: 9px 11px;
    font-size: 10px;
    gap: 5px;
  }
  .tools b {
    max-width: 120px;
    font-size: 9px;
  }
  .tools button {
    padding: 5px 8px;
    min-height: 34px;
    font-size: 10px;
  }
  .tools > div {
    gap: 5px;
  }
  .intro {
    display: flex;
    flex-direction: column-reverse;
    padding: 24px 20px;
    gap: 25px;
  }
  .intro > div {
    width: 100%;
  }
  .intro h2 {
    font-size: 25px;
    margin-bottom: 12px;
  }
  .intro p {
    font-size: 12px;
    margin-bottom: 18px;
  }
  .start-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }
  .start-actions button {
    font-size: 12px;
    padding: 10px 8px;
  }
  .intro .mini-print {
    width: 85%;
    max-width: 320px;
    margin: auto;
    padding: 8px 8px 30px;
  }
  .mini-print .photo-scene {
    aspect-ratio: 1.55;
  }
  .intro-foot {
    font-size: 10px;
    gap: 5px 15px;
    padding: 11px 16px;
  }
  .shooting-area {
    padding: 13px 12px 16px;
  }
  .round-bar {
    font-size: 12px;
    margin-bottom: 9px;
  }
  .round-label {
    font-size: 10px;
  }
  .frame {
    padding: 7px;
  }
  .frame-bar {
    font-size: 10px;
    padding: 1px 3px 7px;
  }
  .frame-bar b {
    font-size: 12px;
  }
  .frame .photo-scene {
    aspect-ratio: 1.15;
  }
  .view-corner {
    width: 17px;
    height: 17px;
  }
  .view-corner.tl {
    left: 17px;
    top: 43px;
  }
  .view-corner.tr {
    right: 17px;
    top: 43px;
  }
  .view-corner.bl {
    left: 17px;
    bottom: 17px;
  }
  .view-corner.br {
    right: 17px;
    bottom: 17px;
  }
  .countdown {
    inset: 35px 7px 7px;
  }
  .countdown b {
    font-size: 58px;
  }
  .countdown span {
    font-size: 11px;
  }
  .controls {
    grid-template-columns: 1fr 84px 1fr;
    gap: 9px;
    margin-top: 14px;
  }
  .shutter {
    width: 82px;
    height: 82px;
    font-size: 13px;
  }
  .control-note {
    font-size: 10px;
  }
  .control-note strong {
    font-size: 11px;
  }
  .hint-line {
    font-size: 10px;
    margin-top: 11px;
  }
  .review-area {
    padding: 19px 14px;
  }
  .review-heading {
    gap: 10px;
  }
  .review-heading h2 {
    font-size: 19px;
  }
  .review-heading p {
    font-size: 11px;
  }
  .photo-score {
    font-size: 28px;
  }
  .photo-score small {
    font-size: 10px;
  }
  .photo-print {
    padding: 7px 7px 12px;
  }
  .photo-print .photo-scene {
    aspect-ratio: 1.15;
  }
  .photo-caption {
    font-size: 10px;
  }
  .pose-list {
    font-size: 10px;
    gap: 5px 12px;
    margin: 14px 0;
  }
  .review-actions {
    gap: 10px;
  }
  .review-actions p {
    font-size: 10px;
    max-width: 55%;
  }
  .review-actions button {
    font-size: 12px;
    padding: 10px 12px;
    white-space: nowrap;
  }
  .result {
    padding: 22px 14px;
  }
  .result-heading {
    gap: 10px;
    align-items: start;
  }
  .result-heading h2 {
    font-size: 21px;
    margin-bottom: 10px;
  }
  .result-heading p {
    font-size: 11px;
  }
  .total {
    font-size: 42px;
  }
  .total small {
    font-size: 12px;
  }
  .perfect-stamp {
    font-size: 11px;
    padding-top: 3px;
  }
  .contact-sheet {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding: 10px;
  }
  .contact-sheet figure {
    padding: 4px 4px 6px;
  }
  .contact-sheet .photo-scene {
    aspect-ratio: 1.2;
  }
  .contact-sheet figcaption {
    font-size: 9px;
    gap: 2px;
  }
  .contact-sheet .sheet-note {
    font-size: 10px;
  }
  .sheet-note b {
    font-size: 13px;
  }
  .share-actions {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }
  .share-actions .primary {
    grid-column: 1/-1;
  }
  .share-actions button {
    padding: 10px 8px;
    font-size: 11px;
  }
  .retry-actions {
    gap: 6px;
  }
  .retry-actions button {
    font-size: 10px;
    padding: 8px;
  }
  .guide {
    grid-template-columns: 1fr;
    gap: 23px;
    margin-top: 25px;
  }
  .guide h2,
  .more-games h2 {
    font-size: 16px;
  }
  .guide p,
  .guide li {
    font-size: 12px;
  }
  .more-links {
    grid-template-columns: 1fr;
  }
  .more-games {
    margin-top: 26px;
  }
  footer {
    padding: 15px 15px 25px;
    gap: 12px;
  }
  footer span {
    width: 100%;
    margin-left: 0;
  }
  .pause-layer h2 {
    font-size: 23px;
  }
  .pause-layer p {
    font-size: 12px;
  }
  .loading,
  .error {
    padding: 50px 18px;
  }
  .loading h2,
  .error h2 {
    font-size: 21px;
  }
  body[data-mode="playing"] .page-copy,
  body[data-mode="paused"] .page-copy {
    display: none;
  }
  body[data-mode="playing"] .page-title {
    font-size: 21px;
    margin-bottom: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 620px) {
  .frame .photo-scene[data-count="2"],
  .photo-print .photo-scene[data-count="2"] {
    aspect-ratio: 1.65;
  }
}
