* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-user-select: none;
  user-select: none;
}

body {
  background-color: #ffffff;
  font-family: 'Poppins', sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen.hidden {
  display: none;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 30px 20px;
}

.logo {
  width: 120px;
  object-fit: contain;
  margin-bottom: -35px;
  margin-top: 24px;
}

.kupu-wrapper {
  position: relative;
  width: 310px;
  height: 310px;
  cursor: crosshair;
}

.kupu-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

#kupuCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hint {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.6rem;
  color: #aaa;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.linkin-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 20px;
}

#linkinCanvas {
  width: 280px;
  height: auto;
  border: 1.5px solid #98d45f;
}

.linkin-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 280px;
}

#fileInput {
  display: none;
}

.ctrl-btn {
  background: #98d45f;
  color: #233156;
  border: none;
  height: 34px;
  flex: 1;
  font-family: 'Poppins', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  white-space: nowrap;
}

.ctrl-btn-save {
  flex: none;
  width: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.ctrl-btn-save img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
}

.ctrl-input {
  font-family: 'Poppins', sans-serif;
  font-size: 0.65rem;
  padding: 0 8px;
  border: 1.5px solid #98d45f;
  outline: none;
  color: #98d45f;
  height: 34px;
  flex: 1;
  min-width: 0;
  text-align: center;
  text-transform: uppercase;
  -webkit-user-select: text;
  user-select: text;
}

.ctrl-input::placeholder {
  color: #98d45f;
  text-align: center;
  text-transform: uppercase;
}

.ctrl-input:focus::placeholder {
  color: transparent;
}

.linkin-hint {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.6rem;
  color: #aaa;
  text-align: center;
  max-width: 280px;
  text-transform: uppercase;
}

@media (max-width: 540px) {
  .kupu-wrapper {
    width: 260px;
    height: 260px;
  }

  .logo {
    width: 100px;
  }

  #linkinCanvas {
    width: 260px;
  }

  .linkin-controls {
    width: 260px;
  }

  .linkin-hint {
    max-width: 260px;
  }
}
