:root {
  color-scheme: dark;
  font-family: "Pretendard", "Segoe UI", sans-serif;
  background: #070a12;
  color: #f5f7ff;
  --image-ratio: 16 / 9;
  --image-ratio-number: 1.777777;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #070a12;
}

body {
  display: grid;
  place-items: center;
}

.effect-shell {
  width: min(100vw, calc(100vh * (16 / 9)));
  width: min(100vw, calc(100vh * var(--image-ratio-number)));
}

.stage {
  position: relative;
  width: 100%;
  aspect-ratio: var(--image-ratio);
  overflow: hidden;
  background: linear-gradient(135deg, #11192d, #1a2640);
}

.scratch-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  z-index: 2;
}

.scratch-canvas:active {
  cursor: grabbing;
}

.content {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0;
  background: linear-gradient(135deg, #141f35, #1e3152 60%, #29486d);
  color: #fff;
}

.content img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.info-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding: 12px 14px;
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.hint {
  color: rgba(255,255,255,0.68);
}
